Author |
Message
|
koami |
Posted: Wed May 05, 2004 10:22 am Post subject: MQClient Application and ReplyToQmgr |
|
|
Novice
Joined: 28 Apr 2004 Posts: 10 Location: San Marcos, California - USA
|
Is it possible for an MQClient compiled application to connect to a ReplyToQmgr and Put onto a ReplyToQueue?
If so, how does the name resolution work?
Scenario: I have an application compiled with MQClient libraries on AIX.
The application connects to a remote QM using a client
channel table and gets a Request/Reply type message from
an input queue.
The application processes the message and tries to connect to
the ReplyToQmgr and put onto the ReplyToQueue.
Question: Is that possible for the MQClient application to connect to the
ReplyToQmgr and put onto a ReplyToQueue?
Thanks |
|
Back to top |
|
 |
Empeterson |
Posted: Wed May 05, 2004 10:59 am Post subject: |
|
|
Centurion
Joined: 14 Apr 2003 Posts: 125 Location: Foxboro, MA
|
Sure, why not. Just read the info from the MQMD and issue a connect to the qmanager listed in the ReplyToQmgr field of the MQMD. As long as the queue manager you need to connect to is in the client table file, you should have no problems. _________________ IBM Certified Specialist: MQSeries
IBM Certified Specalist: Websphere MQ Integrator |
|
Back to top |
|
 |
EddieA |
Posted: Wed May 05, 2004 11:43 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
Is that possible for the MQClient application to connect to the
ReplyToQmgr and put onto a ReplyToQueue? |
Yes. But it might also be possible to just send the message back to the QM you are connected to, and let MQ route it. That's how non-Client applications handle reply messages.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
koami |
Posted: Wed May 05, 2004 11:53 am Post subject: |
|
|
Novice
Joined: 28 Apr 2004 Posts: 10 Location: San Marcos, California - USA
|
I did not make myself clear in my scenario, sorry about that.
The ReplyToQmgr is a customer's QM. The Customer's QM connects to my QM through MQtoMQ connection (Point-to-Point), drops a request/reply type message onto an input queue. My MQClient application remotely connects to my QM and picks up the message for processing.
After processing is completed, it reads the ReplyToQmgr and ReplyToQueue names from the MQMD and tries to connect to the QM (customer's QM).
I am wondering if it is possible to create a QM alias on my QM to resolve to the Customer's QM (ReplyToQmgr), so that my application can successfully connect to the customer's QM and then resolve the ReplyToQueue name by putting the message onto the Xmitq for the sender mca to carry on.
I cannot create a client channel connection for the ReplyToQmgr as the QM resides outside your MQ environment, and the only connection i have is the one to my QM.
Thanks. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed May 05, 2004 12:05 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Then, no offense, your app is coded wrong.
If you want to put the reply back on your Queue Manager, don't code your app to connect to the ReplyToQMgr.
Just put the ReplyToQmgr into the QManager field of the reply message's MQMD. And then put the message onto your Queue Manager. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
koami |
Posted: Wed May 05, 2004 12:14 pm Post subject: |
|
|
Novice
Joined: 28 Apr 2004 Posts: 10 Location: San Marcos, California - USA
|
Thanks.
I will try it and let you know.
Actually, I am in the process of desiging the application. It was coded for MQCluster Environment with MQServer stubs.
I am trying to modify it to use MQClient with the same functionality.
Will keep you posted.
regards. |
|
Back to top |
|
 |
|