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 » removing messages from a queue

Post new topic  Reply to topic
 removing messages from a queue « View previous topic :: View next topic » 
Author Message
anilit99
PostPosted: Fri Jul 17, 2009 7:52 am    Post subject: removing messages from a queue Reply with quote

Voyager

Joined: 28 May 2009
Posts: 75
Location: London, UK

To my horror, I discovered that we can actually delete the messages while browsing the queue (in the application guide - Removing a message that you have browsed )

Why, I mean why any one wants to do that. I shouldnt go into a database table and delete the rows just because I can ! I understand the admins might need this feature, but it looks like I can actually write a small program to do this remotely.

Is there any special scenario in MQ where we need to do this.

p.s: I am sorry, if this is not the right forum to ask this.
_________________
"I almost care !"
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jul 17, 2009 9:33 am    Post subject: Re: removing messages from a queue Reply with quote

Grand High Poobah

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

anilit99 wrote:
Why, I mean why any one wants to do that.


Most people don't and you certainly shouldn't. The feature exists in the product for the same reason it allows you to set msg id; in 99.9% you shouldn't do it but in that 0.1% of cases there's no option.

anilit99 wrote:
I shouldnt go into a database table and delete the rows just because I can !


No you shouldn't but you could.

anilit99 wrote:
I understand the admins might need this feature,


No, not usually.

anilit99 wrote:
but it looks like I can actually write a small program to do this remotely.


You can, in the same way you can write a small program to read the result set from a database with a cursor.

anilit99 wrote:
Is there any special scenario in MQ where we need to do this.


In the same circumstances you'd read a database with a cursor; i.e. almost never.

If you're worried about application developers doing this, either introduce QA on the code, or enforce the use of a user id that doesn't have browse permissions.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
anilit99
PostPosted: Fri Jul 17, 2009 11:49 am    Post subject: Reply with quote

Voyager

Joined: 28 May 2009
Posts: 75
Location: London, UK

that was awesome ! thanks vitor !
_________________
"I almost care !"
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 » removing messages from a queue
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.