|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
removing messages from a queue |
« View previous topic :: View next topic » |
Author |
Message
|
anilit99 |
Posted: Fri Jul 17, 2009 7:52 am Post subject: removing messages from a queue |
|
|
 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 |
|
 |
Vitor |
Posted: Fri Jul 17, 2009 9:33 am Post subject: Re: removing messages from a queue |
|
|
 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 |
|
 |
anilit99 |
Posted: Fri Jul 17, 2009 11:49 am Post subject: |
|
|
 Voyager
Joined: 28 May 2009 Posts: 75 Location: London, UK
|
that was awesome ! thanks vitor !  _________________ "I almost care !" |
|
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
|
|
|
|