|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
error code 2009 |
« View previous topic :: View next topic » |
Author |
Message
|
Praveen |
Posted: Mon May 26, 2003 1:17 am Post subject: error code 2009 |
|
|
 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 |
|
 |
clindsey |
Posted: Tue May 27, 2003 10:11 am Post subject: |
|
|
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 |
|
 |
oz1ccg |
Posted: Wed May 28, 2003 3:40 am Post subject: |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Wed May 28, 2003 9:19 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|