Basically, we have the situation our session bean synchronous
call map to asynchronous JMS messages.
In other words, a session bean method call would have the
following implementation logic:
1. marshall params and send async JMS message.
2. wait around for a reply message to be ready
3. receive a reply JMS message, unmarshall response.
The problem, clearly, is that we can't do step 2 in the EJB method itself for fear
of tying up threads.
I use JMSTemplate to send and receive (block with timeout and select on correlationid)
This seems like a classic problem of mapping synchronous EJB calls to asynchronous
Any suggestions how to do this?