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 » General IBM MQ Support » MQClient Application and ReplyToQmgr

Post new topic  Reply to topic
 MQClient Application and ReplyToQmgr « View previous topic :: View next topic » 
Author Message
koami
PostPosted: Wed May 05, 2004 10:22 am    Post subject: MQClient Application and ReplyToQmgr Reply with quote

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
View user's profile Send private message Visit poster's website
Empeterson
PostPosted: Wed May 05, 2004 10:59 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
EddieA
PostPosted: Wed May 05, 2004 11:43 am    Post subject: Reply with quote

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
View user's profile Send private message
koami
PostPosted: Wed May 05, 2004 11:53 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Wed May 05, 2004 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
koami
PostPosted: Wed May 05, 2004 12:14 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQClient Application and ReplyToQmgr
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.