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 API Support » How to specify destination queue manager from C++?

Post new topic  Reply to topic
 How to specify destination queue manager from C++? « View previous topic :: View next topic » 
Author Message
pmb999
PostPosted: Thu Jul 16, 2009 7:34 am    Post subject: How to specify destination queue manager from C++? Reply with quote

Newbie

Joined: 16 Jul 2009
Posts: 5

When an MQ application receives a message that originates from a remote queue manager the reply-to queue, and reply-to manager are provided as properties of the message. In order to send a reply from a Java client application to a remote queue manager I found that I needed to use the MQQueueManager.accessQueue method to set both destination queue and queue manager from the originating message's reply-to queue and queue manager.

So far so good. I now need to do the same from a C++ application but am unable to find an equivalent way to identify the destination queue manager to send the reply to - can anyone suggest how to achieve this programatically (i.e. without resorting to creating local queue aliases of the remote queue)?

Thanks,

Paul
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Jul 16, 2009 7:46 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Surely it's in the MQMD Reply to QM name field of the message?

MQMD fields are documented in WMQ Application Programming Reference
Back to top
View user's profile Send private message
pmb999
PostPosted: Thu Jul 16, 2009 8:00 am    Post subject: Reply with quote

Newbie

Joined: 16 Jul 2009
Posts: 5

zpat wrote:
Surely it's in the MQMD Reply to QM name field of the message?


Thanks for the reply - but identifying the remote queue manager wasn't the problem. However in the few minutes since posting I think I've found my answer - it's in the ImqQueue::setQueueManagerName(...) method that can be used before its first usage to send/receive messages.
Back to top
View user's profile Send private message
shashikanth_in
PostPosted: Fri Jul 17, 2009 12:13 am    Post subject: Reply with quote

Centurion

Joined: 26 Feb 2009
Posts: 123

You can use ImqMessage.replyToQueueManagerName and ImqMessage.replyToQueueName methods get sender queue manager and queue name.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » How to specify destination queue manager from C++?
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.