Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes JMS design question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS design question" Watch "JMS design question" New topic
Author

JMS design question

Mat Dug
Greenhorn

Joined: Dec 14, 2003
Posts: 5
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

Joined: Aug 10, 2001
Posts: 3892
    
    5
You will either need to use a Message Selector, or you can use Temporary Queues for the return messages.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS design question
 
Similar Threads
JMS reliability
JMS Question
MDB
Session is not invalidated
jms message ack problem in transaction