ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » Error 2058 while connecting to a remote queue manager

Post new topic  Reply to topic
 Error 2058 while connecting to a remote queue manager « View previous topic :: View next topic » 
Author Message
ageej
PostPosted: Wed Oct 02, 2002 8:20 am    Post subject: Error 2058 while connecting to a remote queue manager Reply with quote

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
View user's profile Send private message
mrlinux
PostPosted: Wed Oct 02, 2002 9:11 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
ageej
PostPosted: Wed Oct 02, 2002 9:57 am    Post subject: Reply with quote

Newbie

Joined: 08 Aug 2002
Posts: 6

i have only one queue manager in that box
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Oct 02, 2002 11:19 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Error 2058 while connecting to a remote queue manager
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.