Try OpenEdge Now
skip to main content
Managed Adapters Guide
JMS Managed Adapter : Tutorial 2: Using the JMS Adapter in Send/Receive mode : Advanced exercises for the Send/Receive mode
 

Advanced exercises for the Send/Receive mode

As an advanced exercise for the Send/Receive mode, try writing a JMS client code. Writing a simple MDB that receives the messages, performs some data processing and responds with another JMS message that allows you to verify the message delivery, and to experiment with different format for the message response. When installing the MDB, make sure that it is receiving messages from your own queue–in no case use the system queue "JMSAdapterQueue"–this disrupts the normal work of all the JMS Adapters installed on the server, since your MDB competes with the JMS Adapter MDB for the responses. After selecting a queue, make sure that the same queue name is used in the JMS Adapter configuration.