Author |
Message
|
cghcgh |
Posted: Mon Jun 22, 2009 5:47 pm Post subject: Can 1 mq client connect to multiple queue managers? |
|
|
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 |
|
 |
mqjeff |
Posted: Mon Jun 22, 2009 5:49 pm Post subject: |
|
|
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 |
|
 |
cghcgh |
Posted: Mon Jun 22, 2009 5:57 pm Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Mon Jun 22, 2009 6:11 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
cghcgh |
Posted: Mon Jun 22, 2009 6:34 pm Post subject: |
|
|
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 |
|
 |
PeterPotkay |
Posted: Mon Jun 22, 2009 8:06 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
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 |
|
 |
Gaya3 |
Posted: Mon Jun 22, 2009 10:45 pm Post subject: |
|
|
 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 |
|
 |
zpat |
Posted: Mon Jun 22, 2009 11:01 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
MQSERVER is a bad way to do things. Use a CCDT. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Jun 23, 2009 5:11 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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 |
|
 |
rameshtdp |
Posted: Thu Jun 25, 2009 3:19 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Thu Jun 25, 2009 3:38 am Post subject: |
|
|
 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 |
|
 |
|