Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

When there is a need to communicate between Synchronous system to an Asynchronous one, we need to go for Sync/Async bridge in BPM. This will be tough and even one needs to take care of correlations etc. Often this is the case with JMS scenarios. For this reason special adapter modules are provided for JMS adapter. In this blog lets look at a sample scenario for this Sync/Async communication using modules in JMS.

Scenario: HTTP to JMS.
Send a String using HTTP and post it in a JMS Queue using JMS adapter. An application picks the String, converts it into Uppercase characters and puts it in some other Queue. Another JMS adapter picks that Uppercased String and that String is returned to HTTP.






Design :
1. Create data types and message types.
2. Create two synchronous interfaces one for HTTP and the other for JMS.
3. Create the message mappings and an Interface mapping.

Configuration:
1. Configure two communication channels of type JMS, one as a sender and the other as a receiver.
2. Complete receiver determination, interface determination, sender agreement and receiver agreement.

Details of configuring the JMS adapters.
Sender communication channel :
On the Parameters tab, under Correlation Settings, select JMSCorrelationID for the XI Conversation ID.
Put the modules as seen in the figure below.





Receiver communication channel :
On the Parameters tab, under Correlation Settings, select XI Message ID as the JMSCorrelationID.
Put the modules as seen in the figure below.





The modules that were added in the JMS receiver communication channel makes it to wait for a response. The module given in JMS sender communication channel notifies the JMS receiver communication channel once it picks a message.

30 Comments