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 » problem with creating object mqQMgr = new MQQueueManager(&qu

Post new topic  Reply to topic
 problem with creating object mqQMgr = new MQQueueManager(&qu « View previous topic :: View next topic » 
Author Message
Bartez75
PostPosted: Thu Oct 26, 2006 3:31 am    Post subject: problem with creating object mqQMgr = new MQQueueManager(&qu Reply with quote

Voyager

Joined: 26 Oct 2006
Posts: 80
Location: Poland, Wroclaw

I have a problem with creating object MQQueueManager in .NET c#. I'm new in this. I tried this code:

Code:

MQQueueManager      mqQMgr;
try
{
            
mqQMgr = new MQQueueManager("HERMES_01","channel_name","ip_address:1415");
}
catch(MQException mqe)
{
            
String mText = System.Convert.ToString(mqe.ReasonCode);
MessageBox.Show(mText);
            
}


I got error number 2059 which is MQRC_Q_MGR_NOT_AVAILABLE.

I want to connect to queue manager (HERMES_01). DO I need a channel for that? How should the constructor MQQueueManager look like?
----
thanks for any help.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Oct 26, 2006 3:36 am    Post subject: Re: problem with creating object mqQMgr = new MQQueueManager Reply with quote

Grand High Poobah

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

Bartez75 wrote:

I want to connect to queue manager (HERMES_01). DO I need a channel for that?


Yes, if only the default one supplied (check with whoever administers your queue manager about which one they prefer.

You should also check that the MQ listener is running on port 1415 & there's no network impediment to you reaching it. Both of those problems can cause 2059 errors.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Oct 26, 2006 3:41 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzav.doc/defconn.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Bartez75
PostPosted: Fri Oct 27, 2006 5:39 am    Post subject: Reply with quote

Voyager

Joined: 26 Oct 2006
Posts: 80
Location: Poland, Wroclaw

It is working. I have put my first msg on the queue from the api

I have created it like that:
Code:

mqQMgr = new MQQueueManager("HERMES_01","channel_name","ip_address(1415)");


channel_name is a channel of type "Server-connection"
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 » problem with creating object mqQMgr = new MQQueueManager(&qu
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.