Configuring Request-Reply in JMSAdapter

Posted by [email protected] on Oracle Blogs See other posts from Oracle Blogs or by [email protected]
Published on Mon, 10 May 2010 09:48:23 +0000 Indexed on 2010/05/10 12:04 UTC
Read the original article Hit count: 527

Filed under:
Request-Reply is a new feature in 11g JMSAdapter that helps you achieve the following:

  1. Allows you to combine Request and Reply in a single step. In the prior releases of the Oracle SOA Suite, you would require to configure two distinct adapters.
  2. Performs automatic correlation without you needing to configure BPEL "correlation sets". This would work seamlessly in Mediator and BPMN as well.

In order to configure the JMSAdapter Request-Reply, please follow these steps:

1) Drag and drop a JMSAdapter onto the "External References" swim lane in your composite editor.
composite_jmsadapter.jpg

2) Enter default values for the first few screens in the JMS Adapter wizard till you hit the screen where the wizard prompts you to enter the operation name. Select "Request-Reply" as the "Operation Type" and Asynchronous as "Operation Name".

jmsreqrepl_1.jpg

3) Select the Request and Reply queues in the following screens of the wizard. The message will be en-queued in the "Request" queue and the reply will be returned in the "Reply" queue.


jmsreqrepl_1_1.jpg

 




jmsreqrepl_2_1.jpg


The reason I have used such a selector is that the back-end system that reads from the request queue and generates the response in the response queue actually generates more than one response and hence I must use a filter to exclude the unwanted responses.

4) Select the message schema for request as well as response.
jmsreqrepl_4.jpg
 
5) Add an <invoke> activity in BPEL corresponding to the JMS Adapter partner link. Please note that I am setting an additional header as my third-party application requires this.
bpel_jmsadapter_invoke_1.jpg

6) Add a <receive> activity just after the <invoke> and select the "Reply" operation. Please make sure that the "Create Instance" option is unchecked.

bpel_recv.jpg

Your completed BPEL process will something like this:
complete_bpel_jmsadapter_2.jpg

© Oracle Blogs or respective owner