Task overview: Using enterprise beans in applications
This article provides an overview of the tasks perform to use enterprise beans in a Java -based application.
Use the following steps to develop an EJBs application:
- EJB 3.0 beans: Design a Java EE (Java EE ) application and the enterprise beans that it needs.
- EJB 2.x beans: Design a Java 2 Platform, Enterprise Edition (J2EE) application and the enterprise beans that it needs.
- Develop any enterprise beans that the application uses.
- Prepare for assembly. For the EJB 2.x-compliant entity beans, decide on an appropriate access intent policy.
- Assemble the beans into one or more EJB modules using one of the assembly tools. This process includes setting security. For the EJB 2.x-compliant entity beans, we might also want to designate container-managed persistence (CMP) sequence groups.
- EJB 3.0 beans: Assemble the beans into one or more EJB 3.0 modules using one of the assembly tools.
- Assemble the modules into a J2EE application using the assembly tool.
- For a given appserver, update the EJB container configuration if needed for the application to be deployed.
- For a given appserver, update the EJB container configuration if needed for the application to be deployed, and determine to batch commands or defer commands for container-managed persistence.
- Deploy the application in an appserver.
- Test the modules.
- As needed, debug problems with the container.
- Debug access problems.
- Assemble WAS NDion application using one of the assembly tools
- Deploy the application to a production environment.
- Manage the application:
- Manage installed EJB modules. After an application has been installed, we can manage its EJB modules individually through assembly tools.
- Manage other aspects of the Java application.
- Update the module and redeploy it using one of the assembly tools.
- Tune the performance of the application. See Best practices for developing enterprise beans.
Enterprise beans
Develop enterprise beans
Use access intent policies
EJB modules
Assembling EJB modules
EJB containers
Manage EJB containers
Deploy EJB modules
Task overview: Storing and retrieving persistent data with the Java Persistence API (JPA)
Set Persistence Provider support in the appserver
Associating persistence units and data sources
Set OpenJPA caching to improve performance
Troubleshooting Java Persistence API (JPA) applications
EJB method Invocation Queuing
Secure enterprise bean applications
Enterprise bean and EJB container troubleshooting tips
Enterprise bean cannot be accessed from a servlet, a JSP file, a stand-alone program, or another client 
Related concepts
EJB 3.0 module packaging overview