|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
reason code 2058 on connect to Queue Manager from Visual C++ |
« View previous topic :: View next topic » |
Author |
Message
|
sideshow |
Posted: Tue Jun 25, 2002 10:45 am Post subject: reason code 2058 on connect to Queue Manager from Visual C++ |
|
|
 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 |
|
 |
ghanshyam |
Posted: Mon Jul 01, 2002 4:51 am Post subject: |
|
|
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 |
|
 |
bduncan |
Posted: Mon Jul 01, 2002 6:03 am Post subject: |
|
|
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 |
|
 |
mrlinux |
Posted: Mon Jul 01, 2002 9:24 am Post subject: |
|
|
 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 |
|
 |
mgrabinski |
Posted: Mon Jul 01, 2002 9:25 pm Post subject: what do link with? |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|