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 Java / JMS » MQException: MQJE001: Completion Code 2, Reason 2012

Post new topic  Reply to topic
 MQException: MQJE001: Completion Code 2, Reason 2012 « View previous topic :: View next topic » 
Author Message
handleyc
PostPosted: Fri Apr 22, 2005 6:25 am    Post subject: MQException: MQJE001: Completion Code 2, Reason 2012 Reply with quote

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
View user's profile Send private message Send e-mail
bower5932
PostPosted: Fri Apr 22, 2005 6:50 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
handleyc
PostPosted: Mon Apr 25, 2005 2:24 am    Post subject: Reply with quote

Newbie

Joined: 22 Apr 2005
Posts: 2

Thank you - that seems to work great

Regards, Craig
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQException: MQJE001: Completion Code 2, Reason 2012
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.