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 » how do you set the replyToQmgr field using JMS ?

Post new topic  Reply to topic
 how do you set the replyToQmgr field using JMS ? « View previous topic :: View next topic » 
Author Message
solmyr72
PostPosted: Thu Jul 21, 2005 2:33 am    Post subject: how do you set the replyToQmgr field using JMS ? Reply with quote

Newbie

Joined: 14 Feb 2005
Posts: 7

Hi,

I'm using JMS to send messages to MQ.
People on the receiving end have asked me to set the "replyToQmgr" field inside the RFH2 header (Qmgr is calculated based on some runtime info).
Unfortunately, to the best of my knowledge such features aren't supported by JMS (since it doesn't rely on "queue managers").
Would anyone happen to know if there's a workaround ? Or do I have to abandon JMS and move to specific MQ API ?

Thanks.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jul 21, 2005 3:21 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

A two minute look at the Using Java manual (which practically every post in this forum mentions) would have shown you
Quote:
setJMSReplyTo

public void setJMSReplyTo(Destination replyTo) throws JMSException;
Sets the destination to which a reply to this message can be sent.

The replyTo header field contains the destination where a reply to the current message can be sent. If it is null, no reply is expected. The destination can be either a Queue or a Topic.

Messages with a null replyTo value are called JMS datagrams. Datagrams might contain a notification of some change in the sender (i.e. they signal a sender event) or they might just contain some data the sender thinks is of interest.

Messages with a replyTo value are typically expecting a response. A response is optional: it is up to the client to decide. These messages are called JMS requests. A message sent in response to a request is called a reply.

In some cases a client might wish to match a request it sent earlier with a reply it has just received. This can be done using the correlationID.

Parameters
replyTo - where to send a response to this message
Exceptions
JMSException - if an internal error occurs.


And a cursor glance at some of the IBM samples would have shown you the same thing.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Jul 21, 2005 5:29 am    Post subject: Reply with quote

Jedi Knight

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

http://www.developer.ibm.com/isv/tech/sampmq.html - look for mqjmsreq and mqjmssrv.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
solmyr72
PostPosted: Tue Jul 26, 2005 11:35 pm    Post subject: thanks, but i'm trying to set *queue manager* Reply with quote

Newbie

Joined: 14 Feb 2005
Posts: 7

Thanks very much for the replies.
However, my question was about setting the *queue manager*, not just *queue*....
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jul 27, 2005 3:18 am    Post subject: Re: thanks, but i'm trying to set *queue manager* Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

solmyr72 wrote:
However, my question was about setting the *queue manager*, not just *queue*....


And we answered that question.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jul 27, 2005 11:42 am    Post subject: Re: thanks, but i'm trying to set *queue manager* Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

jefflowrey wrote:
solmyr72 wrote:
However, my question was about setting the *queue manager*, not just *queue*....


And we answered that question.


In JMS there is no such distinction as what you set is a javax.jms.Destination.

For further information on JMS Destination read up on the using Java manual or search sun's webside for the JMS specifications.

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 » how do you set the replyToQmgr field using JMS ?
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.