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 » Unable to do a destructive get using MQ API

Post new topic  Reply to topic
 Unable to do a destructive get using MQ API « View previous topic :: View next topic » 
Author Message
jboller001
PostPosted: Wed May 31, 2006 9:27 am    Post subject: Unable to do a destructive get using MQ API Reply with quote

Apprentice

Joined: 31 May 2006
Posts: 40

I'm writing an MQ client using the MQ API and am having trouble doing a destructive get. The following are my queue open and get message options:

int openOptions = MQC.MQOO_INPUT_AS_Q_DEF;

gmo.options = MQC.MQMO_MATCH_CORREL_ID |MQC.MQGMO_NO_WAIT | MQC.MQGMO_FAIL_IF_QUIESCING | MQC.MQGMO_SYNCPOINT;

As you can see I'm not using any of the Browse options. I'm able to get the messages using the following:

MQQueue replyQueue = qMgr.accessQueue(rqstQueue, openOptions);
replyQueue.get(retrievedMessage,gmo);

After running the program I can still see the messages on the queue using MQ Explorer. Am I missing something?
Thanks for any insight,
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed May 31, 2006 9:40 am    Post subject: Re: Unable to do a destructive get using MQ API Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

jboller001 wrote:
MQC.MQGMO_SYNCPOINT


Do you commit the GET?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jboller001
PostPosted: Wed May 31, 2006 12:01 pm    Post subject: Reply with quote

Apprentice

Joined: 31 May 2006
Posts: 40

That did it. Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Unable to do a destructive get using MQ API
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.