+

Search Tips   |   Advanced Search

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:

 

  1. EJB 3.0 beans: Design a Java EE (Java EE ) application and the enterprise beans that it needs.

  2. EJB 2.x beans: Design a Java 2 Platform, Enterprise Edition (J2EE) application and the enterprise beans that it needs.
  3. Develop any enterprise beans that the application uses.

  4. Prepare for assembly. For the EJB 2.x-compliant entity beans, decide on an appropriate access intent policy.
  5. 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.
  6. EJB 3.0 beans: Assemble the beans into one or more EJB 3.0 modules using one of the assembly tools.
  7. Assemble the modules into a J2EE application using the assembly tool.

  8. For a given appserver, update the EJB container configuration if needed for the application to be deployed.

  9. 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.
  10. Deploy the application in an appserver.

  11. Test the modules.

  12. Assemble WAS NDion application using one of the assembly tools

  13. Deploy the application to a production environment.

  14. Manage the application:

    1. Manage installed EJB modules. After an application has been installed, we can manage its EJB modules individually through assembly tools.
    2. Manage other aspects of the Java application.
  15. Update the module and redeploy it using one of the assembly tools.

  16. 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