Show TOC Start of Content Area

Background documentation Developing Message-Driven Beans  Locate the document in its SAP Library structure

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

When to Develop Message-Driven Beans

You can develop message-driven beans if:

·        You want your application to process asynchronous JMS messages

This graphic is explained in the accompanying text

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 Development Process

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

                            b.      The deployment descriptors

       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.

 

 

End of Content Area