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 Discussion » Can 1 mq client connect to multiple queue managers?

Post new topic  Reply to topic
 Can 1 mq client connect to multiple queue managers? « View previous topic :: View next topic » 
Author Message
cghcgh
PostPosted: Mon Jun 22, 2009 5:47 pm    Post subject: Can 1 mq client connect to multiple queue managers? Reply with quote

Novice

Joined: 28 Aug 2008
Posts: 16

Hi,

I have a mq client v6. i need it to monitor the initiation queue from multiple queue managers. Is that possible?

Will appreciate fast answer for this.

Thanks.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jun 22, 2009 5:49 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You can look at supportPac MA7K.

But, yes, you can do this yourself if you want.
Back to top
View user's profile Send private message
cghcgh
PostPosted: Mon Jun 22, 2009 5:57 pm    Post subject: Reply with quote

Novice

Joined: 28 Aug 2008
Posts: 16

hi jeff, thanks for the prompt reply.

i know that the i can use that pac for trigger monitor.

But put it aside. How do i configure the client to connect to multiple queue managers?
For windows, there is only 1x MQSERVER env parameter that is hardcoded.

How do i overcome this?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jun 22, 2009 6:11 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

...

Don't use MQSERVER.
Back to top
View user's profile Send private message
cghcgh
PostPosted: Mon Jun 22, 2009 6:34 pm    Post subject: Reply with quote

Novice

Joined: 28 Aug 2008
Posts: 16

if i do not specify the mqserver.

then how does it know what is the hostname for that particular queue manager ?

can you advise me?
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon Jun 22, 2009 8:06 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

At the top of the screen click on the MQ Library button, and take a look at the MQ Clients manual. There are several different ways for an MQ Client to specify its connection parameters.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Gaya3
PostPosted: Mon Jun 22, 2009 10:45 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

cghcgh wrote:
if i do not specify the mqserver.

then how does it know what is the hostname for that particular queue manager ?

can you advise me?


Go through the MQ Client PDF. there are lot of things you have to go through
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Jun 22, 2009 11:01 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

MQSERVER is a bad way to do things. Use a CCDT.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Jun 23, 2009 5:11 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9396
Location: US: west coast, almost. Otherwise, enroute.

Quote:
MQSERVER is a bad way to do things

Not so much bad, as MQSERVER environment variable allows for only one client connection at a time.

Take a look at the Clients manual for MQCHLLIB and MQCHLTAB environment variables. This method allows for a client channel table from which your application can select the queue manager from the table.

There are issues with concurrent MQCONNections to multiple qmgrs. This is discussed in the Application Programming Reference and Application Programing Guide.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
rameshtdp
PostPosted: Thu Jun 25, 2009 3:19 am    Post subject: Reply with quote

Novice

Joined: 11 May 2007
Posts: 18
Location: India

By using above two environment varibales; you can connect to multiple queue managers with RFHUtil IBM Tool. Its a freeware.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jun 25, 2009 3:38 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

rameshtdp wrote:
By using above two environment varibales; you can connect to multiple queue managers with RFHUtil IBM Tool. Its a freeware.


Multiple queue managers at the same time? That a feature I was unaware of.

Much as I was unaware RFHUtil could be used as a trigger monitor in the way the original poster was intending.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » General Discussion » Can 1 mq client connect to multiple queue managers?
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.