[Version 5.0.2 and later]Assembling EJB modules

Why and when to perform this task

Assemble an Enterprise JavaBeans (EJB) module to contain enterprise beans and related code artifacts. Group Web components, client code, and resource adapter code in separate modules. After assembling an EJB module, you can install it as a stand-alone application or combine it with other modules into an enterprise application.

To increase performance, break container-managed persistence (CMP) enterprise beans into several enterprise bean modules during assembly. The load time for hundreds of beans is improved by distributing the beans across several JAR files and packaging them to an EAR file. Load time is faster when the administrative server attempts to start the beans, for example, 8-10 minutes versus more than one hour when one JAR file is used.

Use the Assembly Toolkit to assemble an EJB module in any of the following ways:

Steps for this task

  1. Start the Assembly Toolkit.
  2. (Optional)   Open the J2EE perspective to work with J2EE projects. Click Window > Open Perspective > Other > J2EE.
  3. (Optional)   Open the J2EE Hierarchy view. Click Window > Show View > J2EE Hierarchy. Other helpful views include the Project Navigator view (Window > Show View > Other > J2EE > Project Navigator) and the Navigator view (Window > Show View > Navigator).
  4. Migrate enterprise bean (JAR) files created with the Application Assembly Tool (AAT) or a different tool to the Assembly Toolkit. To migrate files, import your enterprise bean files to the Assembly Toolkit.
  5. Create a new EJB module.
  6. Copy code artifacts (such as entity beans) from one EJB module into a new EJB module.
  7. Verify the contents of the new EJB module in either of the following ways:
    • In the J2EE Hierarchy view, expand EJB Modules and view the new module.
    • Click Window > Show View > Navigator to see the associated files for the EJB module in a Navigator view.

Related concepts
EJB modules
Related tasks
Creating EJB modules
Assembling applications with the Assembly Toolkit



Searchable topic ID:   tatk_assemble_ejb
Last updated: Jun 21, 2007 9:56:50 PM CDT    WebSphere Application Server for z/OS, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/ae/tatk_assemble_ejb.html

Library | Support | Terms of Use | Feedback