Author |
Message
|
PeterPotkay |
Posted: Thu Feb 17, 2005 7:45 am Post subject: JMS Reply Queues |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Dumb Question..want to be 100% sure so I don't stick my foot in my mouth....
A JMS app listening on a queue for incoming requests needs to put the reply message back. A JNDI object for each possible reply to q / reply to queue manager does not need to be created before hand, right? The JMS app can dynamically build the necessary queue object to put back the reply back to wherever it came from (assumes the underlying MQ infrastructure is there)? _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Feb 17, 2005 8:00 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Feb 17, 2005 8:18 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
He's not even asking about dynamic queues, I think...
Just dynamically generated Queue objects. Which is also very possible. myMsg.getJMSReplyTo() is a place to start. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Feb 17, 2005 8:26 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Jeff is on the same wavelength as I am.
Added a third broker to our environment today. All of the sudden the app starts yacking on every 3rd message. Turns out they had JNDI objects built for the reply to queues on Broker1 and Broker2. They quickly built the JNDI object for the reply to queue on Broker3.
To me this is wrong. I think the better way is to have the app dynamically handle any reply2q and reply2QM combo it gets.
I wanted to be sure this was possible before I opened my mouth and suggested it to them. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Feb 17, 2005 8:44 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
PeterPotkay wrote: |
Jeff is on the same wavelength as I am. |
I don't know which of us should be more worried...  _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Feb 17, 2005 10:32 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Oops..sorry about that. However, the mqjmssrv program does get the reply queue dynamically and send back a response. It uses the getJMSReplyT0() just like Jeff mentioned. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Feb 17, 2005 12:47 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Using JMSReplyTo as Destination might get you just into a little twist.
Imagine that the sending application is not JMS.
I am not sure whether this is specified in the JMSDestination extracted from the message.
You might have to cast the queue to MQQueue and use the setTargetClient(JMSC.MQJMS_CLIENT_NONJMS_MQ) to suppress the RFH header.
Enjoy  |
|
Back to top |
|
 |
|