Show TOC Start of Content Area

Background documentation The Message Driven Bean  Locate the document in its SAP Library structure

In our case, we also want to write a Message Driven Bean (MDB), which is a consumer of a message sent by a client residing on the server. We can actually use the JMSSender class as the client sending a message to an MDB. All we have to do is:

...

       1.      Write the Message Driven Bean. An MDB has only the bean’s implementation class and no remote or home interfaces.

       2.      Specify the destination type the message driven bean uses. In our case, this is a Queue; for example, the queue JMSTestQueue we have previously defined. We do that in the ejb-jar.xml and in the ejb-j2ee-engine.xml of the bean’s assembly project. All the settings can be made in the SAP NetWeaver Developer Studio.

Here are the exact steps you have to take:

...

       1.      Creating the MDB Application.

       2.      Creating an EJB Module Project.

       3.      Developing the Message Driven Bean.

       4.      Creating the Enterprise Bean Archive.

       5.      Assembling the MDB Application.

       6.      Deploying and Running the MDB

End of Content Area