|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Error 2058 while connecting to a remote queue manager |
« View previous topic :: View next topic » |
Author |
Message
|
ageej |
Posted: Wed Oct 02, 2002 8:20 am Post subject: Error 2058 while connecting to a remote queue manager |
|
|
Newbie
Joined: 08 Aug 2002 Posts: 6
|
I'm using C as my programming language.
Trying to connect to a Queue manager that resides on an NT server using the command MQCONNX. I have given the ip address, the port number and the server connection channel i'm using the system default server connection channel, but i get the error 2058 "Queue manager name not valid or not known " I have verified the queue manager name and it seems to be correct.
I have set the env variable MQSERVER . I don't know how to set it in the code.
Have i missed out some step ? |
|
Back to top |
|
 |
mrlinux |
Posted: Wed Oct 02, 2002 9:11 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
Do you have multiple queue managers on the box ???
If so are you specfing the correct port ??? _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
ageej |
Posted: Wed Oct 02, 2002 9:57 am Post subject: |
|
|
Newbie
Joined: 08 Aug 2002 Posts: 6
|
i have only one queue manager in that box |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Oct 02, 2002 11:19 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I thought that you used the MQCNO in an MQCONNX to avoid having to use the MQSERVER environment variable. I'd suggest that you try running the amqsputC sample with the environment variable:
set MQSERVER=SYSTEM.DEF.SVRCONN/TCP/hostname
amqsputc SYSTEM.DEFAULT.LOCAL.QUEUE <qmgrname>
This is usually the quickest test and it lets you know if you have your configuration setup correctly. If this works, you can then look at your code with a more discerning eye.
Most of the times that I've seen the 2058, it is because you got to a qmgr, but you had the wrong name. Make sure the case of your qmgr is correct. |
|
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
|
|
|
|