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 » General Discussion » deleting single message from queue

Post new topic  Reply to topic Goto page Previous  1, 2, 3
 deleting single message from queue « View previous topic :: View next topic » 
Author Message
exerk
PostPosted: Fri Mar 01, 2013 11:33 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

bruce2359 wrote:
You should push this back to the developers, as it is their responsibility to write business-quality code.

That'll be a first!
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Fri Mar 01, 2013 11:33 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

There is a 3rd possibility. Its possible, perhaps desireable, to have the MQ Admin move / delete 1 or more but not all of the messages out of the queue. Maybe this is a brand new app in DEV and their Poison Message logic is not developed yet and in the interest of progress in the short term, git'er done.

Again, there is no command to do this.
Any capable MQ Admin tool will allow you to do this.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Mar 01, 2013 3:04 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9470
Location: US: west coast, almost. Otherwise, enroute.

PeterPotkay wrote:
There is a 3rd possibility. ... Maybe this is a brand new app in DEV and their Poison Message logic is not developed yet ...

It's been my experience that poison messages are an afterthought.

If/when it's up to me, I would not grant CLEAR QL() even in test, as this would force developers to deal with poison messages early in the design and test phases. One developer argued that he couldn't test his poison message code since there were defective messages in the queue. How absurd is that statement?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
ramires
PostPosted: Fri Mar 01, 2013 5:03 pm    Post subject: Reply with quote

Knight

Joined: 24 Jun 2001
Posts: 523
Location: Portugal - Lisboa

After so many answers I believe the best to do is download MO71 supportpac a play with it to see what it can do. Easy interface to use.
_________________
Obrigado / Thanks you
Back to top
View user's profile Send private message
Toronto_MQ
PostPosted: Mon Mar 04, 2013 11:16 am    Post subject: Reply with quote

Master

Joined: 10 Jul 2002
Posts: 263
Location: read my name

Vitor wrote:

As administrators you implicitly have all the authority you need as the mqm administrative id can do anything including get messages from queues.

(If you don't have access to the mqm id, please explain how you are an "MQ administrator" and how exactly you perform this role)

What you lack is a tool that can do this. You must either use one of the suggestions here, write your own or have the developers develop one for you.


I would argue this point as it's not always so cut and dry. It depends largely on the environment.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Mar 04, 2013 12:36 pm    Post subject: Reply with quote

Grand High Poobah

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

Toronto_MQ wrote:
Vitor wrote:

As administrators you implicitly have all the authority you need as the mqm administrative id can do anything including get messages from queues.

(If you don't have access to the mqm id, please explain how you are an "MQ administrator" and how exactly you perform this role)

What you lack is a tool that can do this. You must either use one of the suggestions here, write your own or have the developers develop one for you.


I would argue this point as it's not always so cut and dry. It depends largely on the environment.


The I repeat my question - how can you "administer" the WMQ estate without access to the mqm id?

On the specific point, the removal of messages: either the OP is an MQ administrator with access via the mqm id to remove messages using one of the methods suggested, or is providing administrative support to the development team via the same id the application runs as.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Toronto_MQ
PostPosted: Mon Mar 04, 2013 12:59 pm    Post subject: Reply with quote

Master

Joined: 10 Jul 2002
Posts: 263
Location: read my name

Vitor wrote:
Toronto_MQ wrote:
Vitor wrote:

As administrators you implicitly have all the authority you need as the mqm administrative id can do anything including get messages from queues.

(If you don't have access to the mqm id, please explain how you are an "MQ administrator" and how exactly you perform this role)

What you lack is a tool that can do this. You must either use one of the suggestions here, write your own or have the developers develop one for you.


I would argue this point as it's not always so cut and dry. It depends largely on the environment.


The I repeat my question - how can you "administer" the WMQ estate without access to the mqm id?

On the specific point, the removal of messages: either the OP is an MQ administrator with access via the mqm id to remove messages using one of the methods suggested, or is providing administrative support to the development team via the same id the application runs as.


I "administer" all installations here. We run on a wide variety of platforms. And you're mostly right, on the distributed platforms we have access to the mqm group or QMQM/QMQMADM.

However, on z/OS I have the ability to create, alter or delete any objects, and stop/start channels, etc. However, I do not have any access to browse, put or get to/from any application queues. The applicaiton user IDs (or service/batch IDs) have this access, from development to production. If an application needs a message removed from a queue, a queue cleared, the contents of the queue browsed, etc, they have 2 options: run code under their authorized ID to do so; or create a change record and ask operations to do it.

Semantics, perhaps.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Mar 04, 2013 1:10 pm    Post subject: Reply with quote

Grand High Poobah

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

Toronto_MQ wrote:
However, on z/OS I have the ability to create, alter or delete any objects, and stop/start channels, etc. However, I do not have any access to browse, put or get to/from any application queues. The applicaiton user IDs (or service/batch IDs) have this access, from development to production. If an application needs a message removed from a queue, a queue cleared, the contents of the queue browsed, etc, they have 2 options: run code under their authorized ID to do so; or create a change record and ask operations to do it.

Semantics, perhaps.


Well z/OS uses RACF which does change the model a little; it is semantics that you are the MQ administrator but Ops holds the administrative authority for messages.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
SAFraser
PostPosted: Thu Mar 07, 2013 9:20 am    Post subject: Reply with quote

Shaman

Joined: 22 Oct 2003
Posts: 742
Location: Austin, Texas, USA

We find that supportpac MO03 is useful in deleting/manipulating individual messages.
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, 3 Page 3 of 3

MQSeries.net Forum Index » General Discussion » deleting single message from 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.