Use this task to configure Enterprise JavaBeans (EJB) 3.1
session bean methods to run asynchronously. You can make some or all
of your bean methods asynchronous.
Before you begin
Attention: In EJB 3.1 modules, you can set one
or more session bean methods to be asynchronous, broadening parallel
processing in your application.
- If you are not already familiar with EJB 3.1 asynchronous methods,
read about EJB 3.1 asynchronous methods, client programming model
for EJB asynchronous methods, bean implementation programming model
for EJB asynchronous methods, and EJB container work manager for asynchronous
methods. The topics provide an overview of EJB 3.1 asynchronous methods,
describe the client and bean implementation programming models, and
discuss the work manager that the EJB container uses to dispatch asynchronous
methods.
- Develop a new EJB 3.1 session bean for your application, or change
an existing session bean so that it conforms to the EJB 3.1 programming
model requirements for asynchronous methods. For general information,
see information about developing enterprise beans.
About this task
After you have developed a session bean, complete the following
steps to make one or more of the bean methods asynchronous.
What to do next
Continue to develop additional components for
your application, or if you have finished all components required
by your application, assemble and deploy your application. See information
about assembling EJB modules and deploying EJB modules.
When you run your application, if it fails when it first attempts
to use a session bean that has an asynchronous method, a configuration
error might exist. Check the system log file for configuration error
messages.
Analyze the trace data or forward it
to the appropriate organization for analysis. EJB asynchronous method
scheduling and invocation are traced in the EJB container trace. For
instructions on enabling this trace see the information about enabling
trace on a running server. To analyze trace data, see information
about trace output.