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 » deleting message from queue as read

Post new topic  Reply to topic
 deleting message from queue as read « View previous topic :: View next topic » 
Author Message
msunny
PostPosted: Mon Jun 16, 2008 10:04 pm    Post subject: deleting message from queue as read Reply with quote

Novice

Joined: 07 Dec 2007
Posts: 18

Hi All,

I am new to MQSeries, I want to delete each message that my application read from remote quere. How can i do it with java api, is there any MQC Option to delete the message. Please help its urgent.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Mon Jun 16, 2008 10:07 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

use MQGET and its options, it will read and it will be taken out from the queue
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
msunny
PostPosted: Mon Jun 16, 2008 10:17 pm    Post subject: deleting message from queue as read Reply with quote

Novice

Joined: 07 Dec 2007
Posts: 18

Could you please tell me the MQGET options to take away the message from queue. I have tried to use MQC.MQCO_DELETE but it clear the messages of queue that even have not been read.
Back to top
View user's profile Send private message
msunny
PostPosted: Mon Jun 16, 2008 11:16 pm    Post subject: Re: deleting message from queue as read Reply with quote

Novice

Joined: 07 Dec 2007
Posts: 18

ok i got the solution by calling MQMessage.clearMessage() and then commiting the quemanager ...
Back to top
View user's profile Send private message
yalmasri
PostPosted: Wed Jun 18, 2008 3:56 am    Post subject: Reply with quote

Centurion

Joined: 18 Jun 2008
Posts: 110

reading the message will by default remove it from the queue
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 » deleting message from queue as read
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.