|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Client/Server setup error (MQCONN ended reason code 2058) |
« View previous topic :: View next topic » |
Author |
Message
|
paul52 |
Posted: Wed Aug 28, 2002 4:16 pm Post subject: Client/Server setup error (MQCONN ended reason code 2058) |
|
|
Novice
Joined: 01 Jul 2002 Posts: 22
|
Hello Everyone
I am trying to test client/server connection in the same Window 2000 machine (MQ 5.3). Here are ths steps i followed form MQseries documentation but i keep on getting error "MQCONN ended with reason code 2058".
Steps:
--------
1 Created queue Manager QM1 (crtmqm QM1)
2.Started Queue Manager QM1 (strmqm QM1)
3.created local queue ( runmqsc QM1 & then DEFINE QLOCAL(TEST)
4.Defined a server channel
DEFINE CHANNEL(CHANNEL1) CHLTYPE(SVRCONN) TRPTYPE(TCP) MCAUSER('mqm')
5. Defined client connection
DEFINE CHANNEL(CHANNEL1) CHLTYPE(CLNTCONN) TRPTYPE(TCP) +
QMNAME(QM1) CONNAME('127.0.0.1(1415)')
6. started listener
runmqlsr -t tcp -m QM1 -p 1415
In Client ( Same machine as Queue Manager)
--------------------------------------
7.At command Prompt:
SET MQSERVER = CHANNEL1/TCP/127.0.0.1 (1415)
( I noticed each time i Open new window, this parameter seems to disappear)
Testing:
--------
When in client side I run "amqsputc TEST QM1", I got error:
"MQCONN ended with reason code 2058". It means, it can't find queue manager.
I also noticed SET MQSERVER = CHANNEL1/TCP/'127.0.0.1 (1415)') disappears each time I Open a new window . Is there any way to make "SET MQSERVER" parameter permanent.
Woudl you please let me know if i missed any steps.
Thanks again. |
|
Back to top |
|
 |
clindsey |
Posted: Wed Aug 28, 2002 6:05 pm Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
The problem is with your set MQSERVER statement. Enter it with
no blanks set MQSERVER=CHANNEL1/TCP/127.0.0.1(1415)
To make this environment variable global, go to the Windows Control Panel and double click the System icon. Click on the 'Advanced' tab and then then Environment Variables button.
You can add it for the current user or at the system level for all
users. Just click the new button and add MQSERVER in the variable name field and your setting in the variable value field. Click OK to save your changes.
After you make this change, close any open command windows and restart to pick up the new MQSERVER var.
Charlie |
|
Back to top |
|
 |
paul52 |
Posted: Thu Aug 29, 2002 8:49 am Post subject: |
|
|
Novice
Joined: 01 Jul 2002 Posts: 22
|
Hello Charlie
Thank you very much for the response. I am now getting errror code 2059. Error message " MQCONN ended with reason code 2059"
amqsput Test QM1 ( this works fine)
But amqsputc test QM1 ended with error code 2059.
Both Queue manager and MQ client is in the same machine (Window 2000).
Any suggestion would be highly appreciated.
Thanks again. ..Paul |
|
Back to top |
|
 |
clindsey |
Posted: Thu Aug 29, 2002 9:41 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Paul, I would guess that your listener is no longer running.
You can enter 'netstat -an' and see if port 1415 is in the
list and that the status is 'lintening'. If you have grep on your server, enter 'netstat -an | grep 1415'.
Also, do you have a 'mqm' user or just 'mqm' group. The mcauser field is expecting a userid. If you do not have a mqm user, you will next get a 2035.
Charlie |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|