WebSphere Application Server - Express, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Assembling EJB modules

An enterprise bean is a Java component that can be combined with other resources to create Java 2 Platform, Enterprise Edition (J2EE) applications.

Before you begin

This article assumes that you have created and unit tested an enterprise bean (EJB file) that you want to assemble in an enterprise application and deploy onto an application server.

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 standalone application or combine it with other modules into an enterprise application.

Use an assembly tool such as the Application Server Toolkit (AST), Rational Web Developer or Rational Application Developer to assemble an EJB module in any of the following ways:

Steps for this task

  1. Start an assembly tool.
  2. If you have not done so already, configure the assembly tool for work on J2EE modules. Ensure that the J2EE and EJB capabilities are enabled.
  3. Migrate enterprise bean (JAR) files created with the Assembly Toolkit, Application Assembly Tool (AAT) or a different tool to an assembly tool. To migrate files, import your enterprise bean files to the assembly tool.
  4. Create a new EJB module.
  5. Copy code artifacts (such as entity beans) from one EJB module into a new EJB module.

Result

An EJB module is migrated or created, reflecting the J2EE folder structure that specifies the location of enterprise bean content files, class files, class paths, the deployment descriptor, and supporting metadata. Files for the EJB module are shown in the Project Explorer view under Enterprise Applications and EJB Projects.

What to do next

After you finish assembling your EJB module, you are ready to deploy your module.

You can generate EJB deployment code and deploy the module to a target server in one step. In the Project Explorer view, right-click on the EJB project and click Deploy.




Sub-topics
Container transactions
Method extensions
Method permissions
References
Sequence grouping for container-managed persistence
Setting the run time for CMP sequence groups

Related concepts
EJB modules

Related tasks
Creating EJB modules
Assembling applications

Task topic    

Terms of Use | Feedback

Last updated: Jun 8, 2005 12:45:23 PM EDT
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/tatk_assemble_ejb.html

© Copyright IBM Corporation 2003, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)