• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

JMS design question

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 3892
5
Redhat Quarkus Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic