Sending a JMS Message and Receiving a Response in a Process
The JMS Request Reply activity sends a request to a JMS queue and waits for the response. After receiving the response, the activity makes the output available.
Procedure
Result
When both applications are run in the same TIBCO Business Studio for BusinessWorks instance, information similar to the following is displayed in the console:
14:41:00.532 [bwThread:In-Memory STWorkProcessor-2] INFO c.t.b.p.g.L.t.b.s.p.j.Q.Log - Received a Queue Message. Request = This is a test request. JMSMessageID = ID:EMS-SERVER.25FC52F2890A4F:5. JobId [bw0a101], ProcessInstanceId [bw0a101], Activity [Log], Process [tibco.bw.sample.palette.jms.queuereceiver.Process], Module [tibco.bw.sample.palette.jms.QueueReceiver:1.0.0.qualifier], Application [tibco.bw.sample.palette.jms.QueueReceiver.application:1.0].
14:41:00.548 [bwThread:In-Memory STWorkProcessor-3] INFO c.t.b.p.g.L.t.b.s.p.j.R.Log1 - Received the response. Response = This is a test response. JobId [bw0a100], ProcessInstanceId [bw0a100], Activity [Log1], Process [tibco.bw.sample.palette.jms.requestreply.Process], Module [tibco.bw.sample.palette.jms.RequestReply:1.0.0.qualifier], Application [tibco.bw.sample.palette.jms.RequestReply.application:1.0].
The RequestReply.log output file at C:\tmp\RequestReply shows that the message is sent to the queue and the response is received.