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 » SYNCPOINT and MQMO_MATCH_MSG_ID together

Post new topic  Reply to topic
 SYNCPOINT and MQMO_MATCH_MSG_ID together « View previous topic :: View next topic » 
Author Message
murali_bestha
PostPosted: Sun Mar 07, 2004 10:09 pm    Post subject: SYNCPOINT and MQMO_MATCH_MSG_ID together Reply with quote

Novice

Joined: 12 Feb 2004
Posts: 17

Hi,

I am having an application that does a SYNCPOINT get. The requriement is, from the Queue only those messages with a mathcing messages must be fetched and processed. And this get must be done under SYNCPOINT. So in my Java application I set the options like this:



getMessageOptions.options = MQC.MQGMO_NO_WAIT | MQC.MQGMO_SYNCPOINT | MQC.MQGMO_FAIL_IF_QUIESCING;
getMessageOptions.matchOptions = MQC.MQMO_MATCH_MSG_ID;
messageReceived.messageId = msgId.getBytes();

where msgId = some string;

int openOption = MQC.MQOO_BIND_ON_OPEN | MQC.MQOO_INPUT_AS_Q_DEF | MQC.MQOO_INQUIRE;

m_QManager.begin();
MQQueue queue = m_QManager.accessQueue("QName",openOption);
queue.get(messageReceived, getMessageOptions);
if( no_Error )
m_QManager.commit();
else
m_QManager.backout();


But this is failing with an MQ reason code 2121 which says No External Participant. Please let me know if any of the settings are missing.

Thanks and advance
Murali
Back to top
View user's profile Send private message Yahoo Messenger
murali_bestha
PostPosted: Sun Mar 07, 2004 11:07 pm    Post subject: Reply with quote

Novice

Joined: 12 Feb 2004
Posts: 17

Hi,

Folks, this got resolved luckily. Sorry to say that the problem was in our DB Server whioc was all of a sudden crashed and we were not actually thinking in that angle.

Regards
Murali
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » SYNCPOINT and MQMO_MATCH_MSG_ID together
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.