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 IBM MQ Support » Program was terminated - queue still open - cant delete msgs

Post new topic  Reply to topic
 Program was terminated - queue still open - cant delete msgs « View previous topic :: View next topic » 
Author Message
BarryB
PostPosted: Thu Aug 19, 2004 6:57 am    Post subject: Program was terminated - queue still open - cant delete msgs Reply with quote

Acolyte

Joined: 01 Jul 2004
Posts: 53
Location: Vernon Hills, Il

Hello,

We have 'killed' a program that was getting messages from a queue, and the queue is still open. I cannot delete messages from that queue using the delete command as it states the queue is still open. Any way of overriding this somehow?

Thanks,

B
Back to top
View user's profile Send private message
MQGuy2000
PostPosted: Thu Aug 19, 2004 7:01 am    Post subject: Reply with quote

Centurion

Joined: 20 Jul 2003
Posts: 131

You can disable gets and then delete messages and then enable it again. I believe this will work.
Back to top
View user's profile Send private message
BarryB
PostPosted: Thu Aug 19, 2004 7:07 am    Post subject: Reply with quote

Acolyte

Joined: 01 Jul 2004
Posts: 53
Location: Vernon Hills, Il

I disabled gets, and it still won't let me delete the messages. It won't even let me delete the queue itself. Is there a 'force delete'?
Back to top
View user's profile Send private message
BarryB
PostPosted: Thu Aug 19, 2004 7:11 am    Post subject: Reply with quote

Acolyte

Joined: 01 Jul 2004
Posts: 53
Location: Vernon Hills, Il

It tells me to remove input and output handles before a delete can occur. How can I do this? Any MQSC command?
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Thu Aug 19, 2004 7:19 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

<Vendor Plug>
MQ Visual Edit can delete messages / clear a queue when the queue is open.
For more information or to download a 30-day trial of MQ Visual Edit, go to:
http://www.capitalware.biz/products.html
</Vendor Plug>

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
skn
PostPosted: Thu Aug 19, 2004 7:20 am    Post subject: Reply with quote

Centurion

Joined: 21 May 2003
Posts: 112
Location: Dallas

What is " Delete Command " ?

Use the sample amqsget to clear the queue.You may have to modify it to handle your messages depending on their size by changing the buffersize.
Back to top
View user's profile Send private message
BarryB
PostPosted: Thu Aug 19, 2004 7:30 am    Post subject: Reply with quote

Acolyte

Joined: 01 Jul 2004
Posts: 53
Location: Vernon Hills, Il

It will not allow me to get as it states the 'queue is in use' and handles exist. Probably because the program that was doing the gets originially was killed and left the queue in use. Is there any other way?
Back to top
View user's profile Send private message
Nigelg
PostPosted: Thu Aug 19, 2004 7:34 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

The agent should have detected that the app has gone away, but it only does this by checking the PID of the connected app. If this PID has been reused, or it was a java app running in a JVM which is still running, the agent will just continue to hold the queue open while it waits for more QI calls on the connection which are never going to come.
The only recourse is to stop and start the qmgr.
Back to top
View user's profile Send private message
romudd
PostPosted: Thu Aug 19, 2004 8:03 am    Post subject: Reply with quote

Apprentice

Joined: 12 Aug 2003
Posts: 31
Location: Sao Paulo - Brazil

If your application is running remotely (connected though a SVRCONN channel) you may "release" your queue by stopping this channel. It may be necessary to use mode(FORCE)
Back to top
View user's profile Send private message MSN Messenger
offshore
PostPosted: Thu Aug 19, 2004 8:42 am    Post subject: Reply with quote

Master

Joined: 20 Jun 2002
Posts: 222

I agree with Nigelg, once the app was killed, then mq should've detected that and released the hold.
I have ran into a few instances where the release wasn't immediate and it took "x" amount of time.

What version of MQ are you running? If you have 5.3 you should be able to do a DIS QSTATUS on the queue and see what process has ahold of it.


offshore
------------------------------
so cool, yet casually lame
------------------------------
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Program was terminated - queue still open - cant delete msgs
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.