How does JMS correlation work in Java?

G

Gianni Galore

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top