How does JMS correlation work in Java?

Discussion in 'Java' started by Gianni Galore, Oct 10, 2010.

  1. When a MDB (message driven bean) instance number 6789 sends (asynchronously) a JMS Request
    to a message broker it expects later a JMS response.

    Assume now this JMS response is put into the queue by a server.

    How can I ensure that MDB instance 6789 gets the response which is intended for him and not the
    other instance 2345 (who is listening at the same queue)?

    This is normally done by passing a JMS correlation ID in JMS header.

    But who is how responsible to direct the JMS response to the corresponding initiator/requestor?

    Is this done (automatically) in MessageBroker or does the Java MDB has to keep track?

    Gianni
     
    Gianni Galore, Oct 10, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jarson
    Replies:
    0
    Views:
    416
    Jarson
    Apr 28, 2004
  2. Thomas Stein
    Replies:
    0
    Views:
    804
    Thomas Stein
    Oct 18, 2004
  3. robert

    numpy/scipy: correlation

    robert, Nov 11, 2006, in forum: Python
    Replies:
    18
    Views:
    6,990
    robert
    Nov 16, 2006
  4. Gary Wessle

    code to find correlation

    Gary Wessle, Aug 26, 2006, in forum: C++
    Replies:
    1
    Views:
    346
    Victor Bazarov
    Aug 27, 2006
  5. Replies:
    0
    Views:
    462
Loading...

Share This Page