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 » CompCode = 2, ReasonCode = 2059...Help!

Post new topic  Reply to topic Goto page Previous  1, 2
 CompCode = 2, ReasonCode = 2059...Help! « View previous topic :: View next topic » 
Author Message
Vitor
PostPosted: Wed Jul 12, 2006 6:50 am    Post subject: Reply with quote

Grand High Poobah

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

Okay then (for more details RTM):

1) If you're using client libraries you need a client channel to connect to the queue manager. This is not to be confused with the channels that link queue managers on the same or different computers. These are a physically different type of MQ channel and you can't use them in this context. Be sure the channel you specify is a server connection channel, or follow the instructions in the manual to create a client connectio table (I have more luck with those in VB).

2) TCP is a literal indicating the transport protocol in use. It's fine.

3) You say "omarz" is the name of the machine you're using, but you quote "lorentz" in the environment variable. Typo? Also ensure that name resolves on your machine by means of a hosts file or similar. Again, I tend to use absolute IP address just because it's easier. Networking - dark art!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
smcgowan
PostPosted: Thu Jul 13, 2006 2:04 am    Post subject: Reply with quote

Novice

Joined: 11 Jul 2006
Posts: 14

Hi,

If you don't mind me asking, do you work for IBM?

Regards,
Sean
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jul 13, 2006 2:07 am    Post subject: Reply with quote

Grand High Poobah

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

No, I once aspired to it but my talent was insufficient and those days are behind me now. I just do contract work in MQ, and have done for a decade or so. VB is also a principle programming language for me.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
smcgowan
PostPosted: Thu Jul 13, 2006 6:47 am    Post subject: Reply with quote

Novice

Joined: 11 Jul 2006
Posts: 14

Hey there,

Yep lorentz was a typo - sorry You mention client and server libraries. I wish to connect using the server libraries. I still don't understand what the channel part of the MQSERVER variable is for. Like I said before, I looking to connect to a local queue. I'm not concerned with the different options available, just the quickest and easiest approach for now. I have the VB 6.0 app ready and the queue set up. I'm getting a 2059 error and I can't figure out why.

Regards,
Sean
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jul 13, 2006 7:00 am    Post subject: Reply with quote

Grand High Poobah

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

Then cast your eyes to the top of the cmqb module and follow the instructions to set MqType to server.

Again, the 2059 is because your connection setting are FUBAR

Code:
2059  0x0000080b  MQRC_Q_MGR_NOT_AVAILABLE


Changing to server will fix it.
_________________
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 Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ API Support » CompCode = 2, ReasonCode = 2059...Help!
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.