Author |
Message
|
youngcool |
Posted: Wed Oct 18, 2006 12:35 am Post subject: How to put the message in the other qmanager? |
|
|
Newbie
Joined: 09 Oct 2006 Posts: 5
|
My application is using the queue manager. when it recieve the msg, analyze it and get the destination queue and queue manager from this manager, how to put this msg to the its special queue? I want to know
whether there have some function to work together to do it.
Attention:
1. you can't disconnect the default qmanager.
2. you can't use the thread technology. |
|
Back to top |
|
 |
sebastianhirt |
Posted: Wed Oct 18, 2006 12:45 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
Your question doesn't realy seem to make sense to me. I don't see your problem.
If the 'special queue' is on the same queue manager just open that queue and put the message into it. If it is on a different queue manager, define a remote queue and channels (or use clustering) and use that for putting. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Oct 18, 2006 3:21 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You just specify the queue name and the queue manager name in the object description that you pass to the open call.
MQ networking will take care of the rest, regardless of if you define a remote queue or not - assuming that MQ networking *can* find how to deliver it. If it *can't* find out how to deliver it... you will get a ReasonCode indicating that when you PUT. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
youngcool |
Posted: Wed Oct 18, 2006 5:17 pm Post subject: |
|
|
Newbie
Joined: 09 Oct 2006 Posts: 5
|
thanks you very much.
I describe this problem in details.
I define a variable its type is 'ImqMessage', it have the member function "replyToQueueManagerName" and "replyToQueueName".
I want to put msg into its destination according to the return value of "replyToQueueManagerName " and "replyToQueueName".
my question is how to realize it using c++ and only the mq channel component ? |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 19, 2006 2:26 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Just use the "replyTo...." data items in the object descriptor as jefflowrey has suggested.
The Using C++ manual details how to achieve this, along with how to establish a client connection. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|