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 » Mainframe, CICS, TXSeries » Deleting particular message from q

Post new topic  Reply to topic Goto page Previous  1, 2
 Deleting particular message from q « View previous topic :: View next topic » 
Author Message
zpat
PostPosted: Sun Mar 04, 2007 11:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Mar 05, 2007 12:55 am    Post subject: Re: How do we delete msg's once read. Reply with quote

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
View user's profile Send private message
santosh.lokhande
PostPosted: Mon Mar 12, 2007 1:41 am    Post subject: Re: How do we delete msg's once read. Reply with quote

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
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Vitor
PostPosted: Mon Mar 12, 2007 1:56 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

You'll find this URL peppered through the posts on this forum:

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp

Happy Reading!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kush911
PostPosted: Fri Apr 27, 2007 8:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » Deleting particular message from q
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.