Entering content frame

Procedure documentation Generating an EJB JAR File Without Enterprise Bean Class Files Locate the document in its SAP Library structure

Use

Use this procedure to create JAR files that contain an ejb-jar.xml file and a manifest.mf file. Create these archives if you have a number of applications that use common enterprise bean classes and you do not want to deploy these enterprise bean classes a number of times.

Recommendation

Use this kind of JAR files to save disk space.

Prerequisites

Before you can create JAR file without enterprise bean class files, you must:

·        Ensure that the enterprise bean class files and the library to which they belong is deployed.

·        Create a new EJB JAR. For more information, see Loading an EJB JAR.

Caution

Do not specify the directory of the class files to be included in the JAR (leave the File Directory empty)

Procedure

...

       1.      In your DLP project, choose the J2EE Components tab.

       2.      Choose the EJB JAR.

       3.      Load a new enterprise bean. For more information, see Loading an Enterprise Bean.

       4.      Choose the new enterprise bean and set its properties. For more information, see Enterprise Bean Properties Management.

       5.      Specify the path to the directory or archive file to which the enterprise bean classes belong. For more information, see Setting a Project Classpath.

       6.      Choose the enterprise bean and choose J2EE Components ® Make Archive.

       7.      Save your entries.

Result

The new EJB JAR file is saved in the project folder.

 

 

Leaving content frame