|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQException: MQJE001: Completion Code 2, Reason 2012 |
« View previous topic :: View next topic » |
Author |
Message
|
handleyc |
Posted: Fri Apr 22, 2005 6:25 am Post subject: MQException: MQJE001: Completion Code 2, Reason 2012 |
|
|
Newbie
Joined: 22 Apr 2005 Posts: 2
|
Hello,
I've searched everywhere and cannot resolve this error - I am extremely new to programming with Java and MQ so please bear with me.
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2012
I'm trying to send a message to a Message Queue transactionally but as soon as I call MQQueueManager.begin() I get the error above.
These are the options that I am using to set up my QManager:
qMgr = new MQQueueManager(qManager);
//Set up the options on the queue to open
int openOptions = MQC.MQOO_INPUT_AS_Q_DEF | MQC.MQOO_OUTPUT ;
//Specify the queue to open, and the open options...
MQQueue system_queue = qMgr.accessQueue(qname,openOptions);
Thanks in advance, Craig |
|
Back to top |
|
 |
bower5932 |
Posted: Fri Apr 22, 2005 6:50 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
If all you are doing is sending messages, then you don't need to do the begin. The begin indicates that you are getting ready to do a two-phase commit. You don't use this method for one-phase commits.
There are some programs that do things with syncpoint located at:
http://www.developer.ibm.com/tech/sampmq.html
Look for the ones with sync in the name. You can also check out mqadhoc and mqdb2. |
|
Back to top |
|
 |
handleyc |
Posted: Mon Apr 25, 2005 2:24 am Post subject: |
|
|
Newbie
Joined: 22 Apr 2005 Posts: 2
|
Thank you - that seems to work great
Regards, Craig |
|
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
|
|
|
|