|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
problem with creating object mqQMgr = new MQQueueManager(&qu |
« View previous topic :: View next topic » |
Author |
Message
|
Bartez75 |
Posted: Thu Oct 26, 2006 3:31 am Post subject: problem with creating object mqQMgr = new MQQueueManager(&qu |
|
|
 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 |
|
 |
Vitor |
Posted: Thu Oct 26, 2006 3:36 am Post subject: Re: problem with creating object mqQMgr = new MQQueueManager |
|
|
 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 |
|
 |
jefflowrey |
Posted: Thu Oct 26, 2006 3:41 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
Bartez75 |
Posted: Fri Oct 27, 2006 5:39 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|