You can use this procedure to add a new enterprise bean to an EJB JAR from your DLP project file, and edit its general properties.
Before you can create a new entity bean, you must have:
· Created an EJB JAR.
· Specified the project class path. For more information, see Setting a Project Classpath.
The Deploy Tool proposes interfaces for the enterprise bean from the specified classpath.
1. In your DLP project, choose the J2EE Components tab.
2. Select the EJB JAR to which you will add the new enterprise bean.
3. Choose J2EE Components → Add EJB. The Load New Bean window appears.
4.
If You Want To |
Then |
Make a new enterprise bean |
Check the Make New EJB checkbox. You will also have to: · Specify the type of the EJB in the EJB Type field. · Specify the name of the bean in the Bean Name field. |
Load an existing enterprise bean |
Check the Load Existing EJB checkbox. You will also have to specify: · The location of the deployment descriptor in the ejb-jar.xml file field. · The location of the class file of the EJB JAR to which this enterprise bean belongs. · Select an enterprise bean from the listed in the Available EJBs field. This field can be edited only after you provide valid information in the previous two field, and at least one entity bean is specified in the deployment descriptor. |
5. Click the OK button. The bean appears as a node under the selected EJB JAR.
6. Select the new enterprise bean. Enter the data required for the different types of beans.
7. Save your entries.
The enterprise bean interface appears as Bean Classes in Additional Files of the parent EJB JAR.
Next, see Enterprise Bean Properties Management.