Message-driven beans have the following features:
· A message-driven bean can process multiple JMS messages asynchronously
· The beans are invisible to clients
· The beans are stateless
· All instances of a message-driven bean are equivalent
You can develop message-driven beans if:
· You want your application to process asynchronous JMS messages
Future versions of the Enterprise JavaBeans specification are expected to cover the processing of other types of messages (not only JMS messages) by message-driven beans.
The process of developing a message-driven bean consists of the following steps:
...
1. Define the functions of the bean
2. Develop the source code of the message-driven bean. That is:
...
a. The message-driven bean class
3. Create the Connection Factory (in the Administration Manual)
4. Create the Destination (Queue or Topic) (in the Administration Manual)
5. Develop the message producer for the corresponding destination.
For more information, see JMS Service – Development.
6. Compile and pack the bean components in a JAR file
7. Pack the whole application in an EAR file
8. Deploy the application on the J2EE Engine
9. Start the application.