Posted: Mon Aug 27, 2007 2:01 am Post subject: queue manager alias with MQ client connection
Apprentice
Joined: 30 May 2006 Posts: 36 Location: Poland
Hi All
I am trying to establish MQ client connection to a queue manager, which name is changed/altered by queue manager alias.
The real queue manager alias is: QMEXTB, the name to which I am trying to connect is QMFRA3T1.
The queue manager alias looks like:
AMQ8409: Display Queue details.
QUEUE(QMFRA3T1) TYPE(QREMOTE)
ALTDATE(2007-07-25) ALTTIME(09.39.16)
CLUSNL( ) CLUSTER( )
CLWLPRTY(0) CLWLRANK(0)
DEFBIND(OPEN) DEFPRTY(0)
DEFPSIST(NO) DESCR( )
PUT(ENABLED) RQMNAME(QMEXTB)
RNAME( ) SCOPE(QMGR)
XMITQ( )
-bash-3.00$ /opt/mqm/samp/bin/amqscnxc -x XX.XX.XX.MyIP QMEXTB
Sample AMQSCNXC start
Connecting to queue manager QMEXTB
using the server connection channel SYSTEM.DEF.SVRCONN
on connection name 57.20.85.13.
Connection established to queue manager QMEXTB
Sample AMQSCNXC end
-bash-3.00$ /opt/mqm/samp/bin/amqscnxc -x XX.XX.XX.MyIP QMFRA3T1
Sample AMQSCNXC start
Connecting to queue manager QMFRA3T1
using the server connection channel SYSTEM.DEF.SVRCONN
on connection name 57.20.85.13.
MQCONNX ended with reason code 2058
Is there a bug in my definition. Or maybe the client connection can not use Queue Manager Aliases?
It sounds from your post that your application program specified the wrong qmgr name ("badname") in the MQCONN call. If so, a qmgr alias won't work for you because the application must first successfully connect to a qmgr to find the qmgr alias.
However, the client channel table is a possible solution. In the CLNTCONN definition, you can specify a QMNAME=badname AND CONNAME=goodname.
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