Show TOC Start of Content Area

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

Use

In this part of the tutorial you learn how to implement the ProjectChangeReceiver message-driven bean that is used for consuming Java Messaging Service (JMS) messages and updating the project management history asynchronously. The application contains an additional message-driven bean – the ApplicationResetReceiver, which you can implement by copying its source code from the Reference.

Procedure

To develop the bean, you go through the following steps:

...

       1.      Creating the ProjectChangeReceiver Bean

Using the SAP NetWeaver Developer Studio tools, you create a message-driven bean in the EJB 3.0 project that you created.

       2.      Defining the Message Destination for the Bean

You register the bean to a destination where the JMS messages are posted.

       3.      Implementing the ProjectChangeReceiver Bean

                            a.      You enable the bean to consume messages by making it implement the javax.jms.MessageListener interface.

                            b.      You inject the required context variables.

                            c.      You implement the bean’s onMessage method.

 

End of Content Area