
You use this procedure to add an EJB JAR to an application. In this way, you can edit the EJB JAR deployment descriptors.
Use unique EJB JAR names in a project.
| If You Want To | Then |
|---|---|
|
Create a new EJB JAR |
Check the Create New option. |
|
Load an existing EJB JAR |
Check the Load Existing option. You will also have to specify in the ejb-jar.xml File field the location of the deployment descriptor of this EJB JAR. |
The EJB JAR appears in the J2EE Components tab. If you loaded an existing EJB JAR, its enterprise beans will appear too.
To load the EJB JAR correctly, you must specify the classpath or classpaths to the package of Java class files included in the archive. For more information, see Setting a Project Classpath .