ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS Reply Queues

Post new topic  Reply to topic
 JMS Reply Queues « View previous topic :: View next topic » 
Author Message
PeterPotkay
PostPosted: Thu Feb 17, 2005 7:45 am    Post subject: JMS Reply Queues Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Thu Feb 17, 2005 8:00 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

You can definitely use dynamic queues with JMS. There are a couple of programs (mqjmsreq.java, mqjmssrv.java) at:

http://www.developer.ibm.com/tech/sampmq.html

that might be what you are looking for.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
jefflowrey
PostPosted: Thu Feb 17, 2005 8:18 am    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Thu Feb 17, 2005 8:26 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Feb 17, 2005 8:44 am    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Thu Feb 17, 2005 10:32 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
fjb_saper
PostPosted: Thu Feb 17, 2005 12:47 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS Reply Queues
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.