Posted: Thu Jul 16, 2009 7:34 am Post subject: How to specify destination queue manager from C++?
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)?
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.
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