|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
Deleting particular message from q |
« View previous topic :: View next topic » |
Author |
Message
|
zpat |
Posted: Sun Mar 04, 2007 11:34 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Browse is used for utilities and not meant for general applications.
Don't use it if you want to remove the messages from the queue.
Also don't open an input queue for output. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Mar 05, 2007 12:55 am Post subject: Re: How do we delete msg's once read. |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
santosh.lokhande wrote: |
I am using the clearMessage() method on the Message object.
It still is failing to remove the message. |
AFAIK that resets the object, it does not affect the message on the queue. To remove the message you need to do a destructive read. Check the manuals for confirmation of the first, and coding of the second.
And as previously stated on this post, it's seldom good design to use browse. Read the messages as they're presented. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
santosh.lokhande |
Posted: Mon Mar 12, 2007 1:41 am Post subject: Re: How do we delete msg's once read. |
|
|
Newbie
Joined: 03 Mar 2007 Posts: 6 Location: NA
|
And as previously stated on this post, it's seldom good design to use browse. Read the messages as they're presented.[/quote]
Thanks Guys for your replies.
My code is working now.
But still is it possible that you give me the URL for the help documents and the 2 reference codes.
Thanks
Santosh _________________ Regards
Santosh |
|
Back to top |
|
 |
Vitor |
Posted: Mon Mar 12, 2007 1:56 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
|
Back to top |
|
 |
kush911 |
Posted: Fri Apr 27, 2007 8:14 am Post subject: |
|
|
Novice
Joined: 17 Aug 2006 Posts: 11
|
do not browse the mq. when you browse th mq the message does not get deleted. if you do not browse the mq then by default it will do a destructive read |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|