+

Search Tips   |   Advanced Search

Task overview: Use enterprise beans in applications

This article provides an overview of the tasks you must perform to use enterprise beans in a Java based application.

Use the following steps to develop an EJB application:

  1. EJB 3.x beans: Design a Java EE application and the enterprise beans that it needs.

  2. EJB 2.x beans: Design a J2EE application and the enterprise beans that it needs.

  3. Develop any enterprise beans that the application uses. See the topic Develop enterprise beans.

  4. Prepare for assembly. For the EJB 2.x-compliant entity beans decide on an appropriate access intent policy. For more information about using access intent, see the topic, Using access intent policies for EJB 2.x entity beans.

  5. Assemble the beans into one or more EJB modules using one of the assembly tools. See the topic Assembling EJB modules.

    This process includes setting security. See the topic Securing enterprise bean applications to learn more about setting the security.

    For the EJB 2.x-compliant entity beans, you might also want to designate container-managed persistence (CMP) sequence groups. See the topic Setting the run time for CMP sequence groups.

  6. EJB 3.x beans: Assemble the beans into one or more EJB 3.x modules using one of the assembly tools. See the topic Assemble EJB 3.x modules.

  7. Assemble the modules into a Java EE application using the assembly tool.

  8. Update the EJB container configuration for a given application if needed for the application to be deployed. See the topic Managing EJB containers.

  9. Update the EJB container configuration for a given application server if needed for the application to be deployed, and determine to batch commands or defer commands for container-managed persistence. See the topics Manage EJB containers, Setting the run time for batched commands with JVM arguments, and Setting the run time for deferred create with JVM arguments.

  10. Deploy the application in an application server. See the topic Deploying EJB modules.

  11. Test the modules.

    • As needed, debug problems with the container. For more information see the topic Enterprise bean and EJB container troubleshooting tips.

    • Debug access problems. See the topic Enterprise bean cannot be accessed from a servlet, a JSP file, a stand-alone program, or another client.

  12. Assemble the production 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. See the topic Deploying and administering enterprise applications

  15. Update the module and redeploy it using one of the assembly tools.

  16. Tune the performance of the application. See the topic Best practices for developing enterprise beans.


Subtopics


Related concepts

  • Enterprise beans
  • EJB modules
  • EJB containers
  • EJB 3.x module packaging overview


    Related tasks

  • Develop enterprise beans
  • Use access intent policies for EJB 2.x entity beans
  • Assembling EJB modules
  • Manage EJB containers
  • Deploy EJB modules
  • Task overview: Storing and retrieving persistent data with the JPA API
  • Configure persistence provider support in the application server
  • Associate persistence providers and data sources
  • Configure OpenJPA caching to improve performance
  • Troubleshooting JPA applications

    (iseries) Enterprise beans back up and recovery best practices

  • Secure enterprise bean applications
  • Assembling applications
  • Deploy

  • EJB method Invocation Queuing
  • Enterprise bean and EJB container troubleshooting tips
  • Enterprise bean development best practices