For example: a client calls a Web Service this Web Service needs to call a async (JMS) service. The JMS service returns a result. Then result is returned to the Web service caller without breaking the connection!
You can use the Reply-To feature available in JMS, so whoever handles the message will send the result to a reply queue. Meanwhile, your webservice implementation will sit in a synchronous call waiting for a reply in that reply queue.
Thisk Stackoveflow question can give you some ideas on how to implement this:
You can use the Reply-To feature available in JMS, so whoever handles the message will send the result to a reply queue. Meanwhile, your webservice implementation will sit in a synchronous call waiting for a reply in that reply queue.
Thisk Stackoveflow question can give you some ideas on how to implement this: