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 Installation/Configuration Support » error code 2009

Post new topic  Reply to topic
 error code 2009 « View previous topic :: View next topic » 
Author Message
Praveen
PostPosted: Mon May 26, 2003 1:17 am    Post subject: error code 2009 Reply with quote

Apprentice

Joined: 23 Oct 2002
Posts: 40
Location: Bangalore

Hi All,
I am getting the error code 2009 when trying to connect to a queue manager. when I am trying to open the connection I am using the options as
Code:
MQC.MQOO_OUTPUT | MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO_SET_IDENTITY_CONTEXT
. Can anybody help me out how to handle this situation or my code is already doing that?.
_________________
Thanks,

Praveen K
Back to top
View user's profile Send private message
clindsey
PostPosted: Tue May 27, 2003 10:11 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

I assume you are connecting as a client, not server bindings.
Make sure the channel you are using is type SVRCONN.

Charlie
Back to top
View user's profile Send private message
oz1ccg
PostPosted: Wed May 28, 2003 3:40 am    Post subject: Reply with quote

Yatiri

Joined: 10 Feb 2002
Posts: 628
Location: Denmark

Hmm... What are you doing ??? MQOO_* is for MQOPEN only...

The MQCONN() call don't accept options, just the qmgr name.

So I did some guessing:

If you're dealing with MQCONNX it's another issue, but there are ConnectOpts (MQCNO). For a sample look in amqscnxc.c (in the tool/c/samples path of the server pack).

Just my $0.02
_________________
Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
RogerLacroix
PostPosted: Wed May 28, 2003 9:19 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

That looks like Java code. Praveen, you talk about connecting but are showing open option code.

Here is simple Java code to connect then open a queue:
Code:
MQQueueManager _qMgr;
MQQueue        _outQ;

int openOutputOptions = MQC.MQOO_OUTPUT + MQC.MQOO_FAIL_IF_QUIESCING + MQC.MQOO_SET_IDENTITY_CONTEXT;

try
{
   _qMgr = new MQQueueManager("MQA1");  // connect to q manager

   _outQ = _qMgr.accessQueue( "MY.OUTPUT.Q",
                              openOutputOptions,
                              null,           // default q manager
                              null,           // no dynamic q name
                              null );         // no alternate user id
}
catch (MQException e)
{
   System.out.println("CC=" + e.completionCode + " RC=" + e.reasonCode + " - " + e);
}


later
Roger...
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » error code 2009
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.