|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
deleting message from queue as read |
« View previous topic :: View next topic » |
Author |
Message
|
msunny |
Posted: Mon Jun 16, 2008 10:04 pm Post subject: deleting message from queue as read |
|
|
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 |
|
 |
Gaya3 |
Posted: Mon Jun 16, 2008 10:07 pm Post subject: |
|
|
 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 |
|
 |
msunny |
Posted: Mon Jun 16, 2008 10:17 pm Post subject: deleting message from queue as read |
|
|
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 |
|
 |
msunny |
Posted: Mon Jun 16, 2008 11:16 pm Post subject: Re: deleting message from queue as read |
|
|
Novice
Joined: 07 Dec 2007 Posts: 18
|
ok i got the solution by calling MQMessage.clearMessage() and then commiting the quemanager ...  |
|
Back to top |
|
 |
yalmasri |
Posted: Wed Jun 18, 2008 3:56 am Post subject: |
|
|
Centurion
Joined: 18 Jun 2008 Posts: 110
|
reading the message will by default remove it from the queue |
|
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
|
|
|
|