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 » General IBM MQ Support » reason code 2058 on connect to Queue Manager from Visual C++

Post new topic  Reply to topic
 reason code 2058 on connect to Queue Manager from Visual C++ « View previous topic :: View next topic » 
Author Message
sideshow
PostPosted: Tue Jun 25, 2002 10:45 am    Post subject: reason code 2058 on connect to Queue Manager from Visual C++ Reply with quote

Newbie

Joined: 25 Jun 2002
Posts: 4

From the sample programs (imqsput.cpp & imqsget.cpp) with MQSeries, I can get both of them to compile and link with no errors, but at execution every program terminates at the connection to the queue manager. I receive a reason code of 2058 which is a MQRC_Q_MGR_NAME_ERROR. I am using a MSVC++ compiler and running Win 2000. I have set up a queue manager to default. The queues are working fine with the API exerciser.

If someone knows the answer to my problem, can you please reply.

Thanks
[/b]
Back to top
View user's profile Send private message
ghanshyam
PostPosted: Mon Jul 01, 2002 4:51 am    Post subject: Reply with quote

Newbie

Joined: 31 May 2002
Posts: 5
Location: Michigan

Hi,
check your communication portnumber and ip address of server? also check is listner start or not?
may be it's help you.
_________________
Thanks
Back to top
View user's profile Send private message Send e-mail
bduncan
PostPosted: Mon Jul 01, 2002 6:03 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Since you say you created the queue manager as the default queue manager, I am assuming that you are running the amqsput and amqsget programs without specifying a queue manager name at all, i.e.,
amqsput queuename

Perhaps you didn't correctly configure the queue manager as the default. This would explain the error. Try running amqsput or amqsget while explicity giving the queue manager name (even though it shouldn't be necessary), i.e.,
amqsput queuename queuemanagername

Another way to test to see if your queue manager is really the default queue manager is by trying to go into runmqsc without providing a queue manager name.
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
mrlinux
PostPosted: Mon Jul 01, 2002 9:24 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

The fact you are getting 2058 indicates you are connecting to a listener but
are not passing in the correct Queue manager name or if the queue manager is not configured as default and you are not passing in the queue manager name at all this is the most typical causes of this problem
_________________
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
mgrabinski
PostPosted: Mon Jul 01, 2002 9:25 pm    Post subject: what do link with? Reply with quote

Master

Joined: 16 Oct 2001
Posts: 246
Location: Katowice, Poland

My 2 cents:

I had the same error (also in MSVC) when I by mistake linked some additional libs with my program. Make sure you link only with mqm.lib

I suppose the error was caused by linking a client lib, while the program was running on an MQ server.

Best regards,
_________________
Marcin Grabinski <><
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » reason code 2058 on connect to Queue Manager from Visual C++
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.