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

Tutorial 2: Using the JMS Adapter in Send/Receive mode

Tutorial 1: Using the JMS Adapter in Send-Only mode demonstrated how the JMS Adapter can be used to send messages, without considering what will happen with the messages later. When the message is sent, it is usually delivered to some kind of enterprise information system (EIS) that will process it and may respond with its own message.
In order to test the capabilities of the JMS Adapter to receive such responses, you can simulate the action of the EIS, preferably without involving any additional software. The easiest way to do this is to deliver the output message directly to the incoming JMS queue, thus bypassing the need for any external program.
We can use our previous example as a base and define a process that generates a message containing some product information and receives a response. Ideally, we should send this message to the EIS to process it and return a response, but since we are bypassing the EIS, the best we can do is to receive the message that we sent, and to treat it as the response we are waiting for.
* Defining the process workflow for the Send/Receive mode
* Configuring the JMS Adapter for the Send/Receive mode
* Defining mapping for the Send/Receive mode
* Defining the SendReceive workstep as asynchronous for the Send/Receive mode
* Deploying and testing the JMS Adapter for the Send/Receive mode
* Troubleshooting for the Send/Receive mode
* Advanced exercises for the Send/Receive mode