Posted: Thu Sep 18, 2008 7:31 am Post subject: Same SVRCONN name on more than one QMGR
Knight
Joined: 25 Aug 2006 Posts: 589
I am using WMQ V6
I have a number of QMGRs have the same svrconn channel called QM.SVRCONN
I have a MQClients that needs to connect to these QMGRs using the SVRCONN Channel.
When the client want to connect to QM1, I use
MQSERVER=QM.SVRCONN/TCP/IP_QM1(1416)
When the client wants to connect to QM2, I change the MQSERVER to MQSERVER=QM.SVRCONN/TCP/IP_QM2(1415)
and so on for other Qmgrs.
I think a better way is to use the Channel table.
However when I tried to create the channel table by defining client connection channel using the explorer, it will not allow me to have objects with the same name.
Is this do-able? Do I need to have a different SVRCONN channel name for each QM?
Posted: Thu Sep 18, 2008 5:21 pm Post subject: Re: Same SVRCONN name on more than one QMGR
Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
KIT_INC wrote:
I think a better way is to use the Channel table.
However when I tried to create the channel table by defining client connection channel using the explorer, it will not allow me to have objects with the same name. Is this do-able? Do I need to have a different SVRCONN channel name for each QM?
Its not possible to have duplicate channel names in a CCDT. You need to have a different channels names for each QM.
An alternative is to use MQCONNX with the MQCNO & MQCD structures. You can dynamically set the channel name, protocol, host and port in the MQCD for each connection.
The same principle exists for the Java MQ classes. _________________ Glenn
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