This blog deals about Async/Sync communication in JMS adapter. Normally we use BPM to achieve the Async/Sync functionality, but from SP19 there are modules provided to handle this without BPM. The advantage of using this method over the BPM provides a fivefold to tenfold increase in system performance. On the other hand if we have to monitor the Async/Sync communication, then we have to go for BPM.
Consider a scenario where JMS wants to communicate with a database using XI. In this scenario, we retrieve the details of a person from the database based on the id in one queue and insert the details in another queue.
In Design :
1) Accordingly create data types and message types.
2) Create two synchronous interfaces one for JMS and the other for JDBC.
3) Complete the design by creating message mappings and interface mapping.
1) Configure two communication channels of type JMS, one as a sender and the other as a receiver.
2) Configure a communication channel for JDBC as a receiver.
3) Complete receiver determination, interface determination, sender agreement and receiver agreement.
Configure the communication channels as explained below.
In sender communication channel :
On the Parameters tab page, under Correlation Settings, select JMSMessageID for the XI Conversation ID.
In receiver communication channel :
On the Parameters tab page, under Correlation Settings, select XI Conversation IDas the JMSCorrelationID.
The modules defined in the sender JMS channel sends the response from database to the corresponding receiver.