!--a11y-->
Loading an EJB JARYou use this procedure to add an EJB JAR to an application. In this way, you can edit the EJB JAR deployment descriptors.
1. In your DLP project file, choose the J2EE Components tab.
2. Choose J2EE Components ® Add EJB Group. The Load EJB JAR dialog box appears.
3. Type a name for the archive in the Archive Name field.

Use unique EJB JAR names in a project.
4.
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. |
5.
Select the directory of the class files to be
included in the EJB JAR file. This directory is added as the directory of the
archive. The files and classes from this directory will be included in the
archive. You can also add this directory after you load the EJB JAR. For more
information, see
Managing Files and
Directories.
6. To close the Load EJB JAR dialog box, choose OK.
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.
