Announcement Announcement Module
Collapse
No announcement yet.
How to synchronously wait for remote process triggered by a JMS message to finish Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to synchronously wait for remote process triggered by a JMS message to finish

    Hi all,
    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.

    Thanks,
    Pramod

  • #2
    Use a Spring Integration <jms:outbound-gateway/>.

    http://static.springsource.org/sprin...tbound-gateway

    Comment

    Working...
    X