² 如果需要调试JSP或Servlet,选中Application server is web server。
二、在 Jbuilder中创建Enterprise Bean
Each enterprise bean you create must belong to a JBuilder EJB group. An EJB group is a logical grouping of one or more beans that will be deployed in a single JAR file. It contains the information that is used to produce the deployment descriptor(s) for that JAR file. You can edit the content of an EJB group using the Deployment Descriptor editor.
l Creating an EJB group
两种方式:
File|New|Enterprise|Empty EJB Group…
File|New|Enterprise|EJB Group From Descriptors…
Notice:EJB Group类型选择ejbprgx(用XML作描述文件,适用于版本控制)
l Creating an Entity Enterprise Bean
两种方式:
² Enterprise JavaBean wizard
² The EJB Entity Bean Modeler
File|New|Enterprise|Enterprise JavaBean…
l 在EJB中增加属性及方法
选中EJB类文件,选择Bean Designer|property|Add Property
l Exposing Business methods through the remote interface
在远程接口中增加方法:
选中EJB类文件,选择Bean Designer|Mothods Tab,选择要暴露在远程接口中的方法(Checked or UnCheck)。
三、调试EJB
1、 创建Container Server
Run|Configurations…――》New…|Run
l Configuration name:ServerName;
l 正确设置EJB|VM parameters:(和Project Properties…àRunàEJB| VM parameters…);
l Application|Main class:weblogic.Server
2、 创建Cilent for Test
l 创建Client框架
NewàEnterprise|EJB Test Client…选择需要调试的EJB名称和Package,Class名称,ok按钮。