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 (reasonCode=2059) on connection to MQ

Post new topic  Reply to topic
 Error (reasonCode=2059) on connection to MQ « View previous topic :: View next topic » 
Author Message
vbajwa
PostPosted: Tue Feb 20, 2007 9:00 am    Post subject: Error (reasonCode=2059) on connection to MQ Reply with quote

Newbie

Joined: 31 Jan 2007
Posts: 8

I am using the C++ interface, MQ version 5.3.0.5. Specifying the channel reference while connecting. Not using the MQSERVER env variable (because I need to connect to multiple QMs). Any suggestions appreciated! The log is below (some names masked): Basically the code is calling setChannelName, setTransportType (MQXPT_TCP) and setConnectionName(), in addition to setting the name of the QM. Tne it just calls connect.


thd1: 02/20 11:12:25 INF AppSender.cpp:31 AppSender:initializing MQManager
thd1: 02/20 11:12:25 INF MQUtils.cpp:61 Connecting to MQManager: ZEUS_QM
thd1: 02/20 11:12:25 INF MQUtils.cpp:62 Connection name=infra1.xyz.nsroot.net(1515), channel=ZEUS_CHL, transport=MQXPT_TCP
thd1: 02/20 11:12:25 FTL MQUtils.cpp:72 Error connecting to MQ: ZEUS_QM reason code: 2059
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Feb 20, 2007 10:07 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Make sure you can use amqscnxc to establish the same connection from the same machine.

Make sure you are setting the right port in the Connection Name.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Feb 21, 2007 12:34 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Failing that, do a search of the forum. 2059 is one of the common problem and is often discussed in here. Bear in mind it's not necessarially caused by your code.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » IBM MQ API Support » Error (reasonCode=2059) on connection to MQ
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.