Task overview: Using enterprise
beans in applications
This article provides an overview
of the tasks you must
perform to use enterprise beans in a Java based
application.
About this task
Use the following
steps to develop an Enterprise JavaBeans (EJB)
application:
Procedure
EJB 3.x beans: Design
a Java Platform, Enterprise
Edition (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 your application uses. See the
topic Developing enterprise beans.
Prepare
for assembly. For your 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.
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 your 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.
EJB 3.x beans: Assemble
the beans into one or more
EJB 3.x modules using one of the assembly tools. See the
topic Assembling EJB 3.x modules.
Assemble
the modules into a Java EE
application using the assembly tool.
Update
the EJB container configuration for a given application
if needed for the application to be deployed. See the topic Managing
EJB containers.
Update the EJB container configuration
for a given application
server if needed for the application to be deployed, and determine
if you want to batch commands or defer commands for container-managed
persistence. See the topics Managing EJB containers, Setting
the run time
for batched commands with JVM arguments, and Setting the run time
for deferred create with JVM arguments.
Deploy
the application in an application server. See
the topic Deploying EJB modules.
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.
Assemble
the production 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, you can manage its EJB modules individually through
assembly tools.
Manage other aspects
of the Java application. See
the topic Deploying and
administering enterprise applications
Update the module and redeploy it using one of the assembly
tools.
Tune the performance of the application.
See the topic Best practices
for developing enterprise beans.
Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.
This feature requires Internet access.
Most of the following links will take you to information that is not part of the formal product documentation and is provided "as is." Some of these links go to non-IBM Web sites and are provided for your convenience only and do not in any manner serve as an endorsement by IBM of those Web sites, the material thereon, or the owner thereof.