Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot connect to QMGR via AMQCLCHL.TAB

Status
Not open for further replies.

hench

Programmer
Jul 30, 2003
6
DK
Hi,

I am trying to make an MQ client application connect to an MQ server. The MQ server runs on host MACHINE1

Both client and server are ver. 5.2 and run on WIN 2000 platforms.

I have tried the following steps :

1) Define a server connection channel 'CLIENT.TO.QMGR1' on the server

2) Define a client connection on the server as follows :

DEFINE CHANNEL(CLIENT.TO.QMGR1) CHLTYPE(CLNTCONN) TRPTYPE(TCP) CONNAME(MACHINE1) QMNAME(QMGR1)

3) Copy the file c:\program files\ibm\mqseries\qmgrs\QMGR1\@ipcc\AMQCLCHL.TAB on the server to a directory c:\mq on the client machine

4) Set environment variables on the client machine :
SET MQCHLLIB=C:\mq
SET MQCHLTAB=AMQCLCHL.TAB

Now when I try to connect to QMGR1 with the client application, the connection fails with reason code 2059.

Could anybody help me in sorting out this problem?

Thanks,
Hench
 
Make sure your listener on the server is running. And that you either use a new dos session(if thats what you are using) or SET these env variables in the same dos prompt from where you are running your client app.

Also make sure that you have your listener bound to port 1414, since you did not mention an explicit port within the clientconn channel def.



Cheers
KK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top