Try OpenEdge Now
skip to main content
Managed Adapters Guide
Sonic ESB Managed Adapter : Working with Sonic ESB Adapter : Configuring the Sonic ESB Adapter : Specifying whether adapter should wait for reply or not
 
Specifying whether adapter should wait for reply or not
You can use the Request Message and Response Message tabs (if enabled) in the Sonic ESB Adapter Configurator to construct the request message and response message respectively. The available message types and other properties are the same in both these tabs.
The Sonic ESB adapter provides an option in the Sonic ESB Adapter Configurator to select if the adapter workstep instance should wait for reply or not.
To enable this option:
1. From the Reply tab, select the Wait for Reply check box.
2. If the default reply destination topic, "OpenEdge.ResponseTopic" exists, the same appears as the default value in the Reply To box. If this topic does not exist and the destination queue, "OpenEdge.ResponseQueue" exists, the same appears as the default value in the Reply To box. You can change the reply destination from the provided table, which is populated with all the retrieved JMS destinations.
3. Select any JMS destination entry as the JMS destination for the response message. The selected reply JMS destination is set on the "JMSReplyTo" header property of the request message. You can now use the Response Message tab to construct the response message.
For clarification, consider an example where you want to invoke Process1 process whose entry endpoint is Sample.Q1 and whose exit endpoint, fault endpoint, and rejected message endpoint are all tied to REPLY_TO value. If you now select the Wait for Reply check box and assuming that OpenEdge.ResponseTopic exists, the "JMSReplyTo" header property value of request message is OpenEdge.ResponseTopic. The adapter, after sending request message to Sample.Q1 tries to receive message from OpenEdge.ResponseTopic. The response message can be a valid reply message or a fault message or a rejected message. In case of a rejected message, the adapter workstep is suspended. On receiving valid reply message or a fault message, the adapter updates the output dataslots and gets completed successfully. If the adapter does not receive any reply for 1 minute, it gets suspended.
You can use the Request Message tab to construct the request message that is sent to the selected JMS destination at execution time. You can use the Response Message tab to construct the response message (similar to the construct of the request message) that is received from the exit endpoint, mapped to the REPLY_TO address.