I would like to do the following:
In my service method, I would like to send a few JMS Messages out, and then register as a message listener to the response queue and synchronously wait until a message intended for me arrives on a response queue when the processing is DONE. The bottom line is I do not want to relieve the thread until the async processing is finished.
This is similar to using an executor which returns a Future and the caller waits on future.get. However, since the processing is happening on the remote machine which was triggered by a JMS Message, I am confused on how I could use future.get.
Any help would be appreciated.