• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS design question

 
Mat Dug
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need help in a JMS design question.
I�ve more than one application (say App1 and App2) sending messages to a Send Q, which will be picked by MDB in the container. Both App1 and App2 will set the setJMSReplyTo() in the message by passing a Receive Q. Both App1 and App2 waits for the ACK message from the Receive Q by calling setMessageListener() method on the QueueReceiver by passing this object to it. After completing the work MDB puts the ACK message into the Receive Q.
In the above scenario, do I need to use message selector so that App1 ACK messages will go to App1 and App2 ACK messages will go to App2? Or by default JMS knows (since it has a reference to App1 and App2) to send ACK messages appropriately between App1 and App2.
Thanks
-Mat
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will either need to use a Message Selector, or you can use Temporary Queues for the return messages.
Kyle
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic