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 » Clearing messages of a Queue?

Post new topic  Reply to topic
 Clearing messages of a Queue? « View previous topic :: View next topic » 
Author Message
Vin
PostPosted: Fri Aug 16, 2002 10:52 am    Post subject: Clearing messages of a Queue? Reply with quote

Master

Joined: 25 Mar 2002
Posts: 212
Location: India

Is there any way programatically using JMS or MQBaseJava to clear messages of a Queue? We want to test the queue depth and if it reaches tje maximum we need to be able to clear the messages from this queue. The platform is Solaris with MQSeries 5.2. Thanks.
Back to top
View user's profile Send private message
clindsey
PostPosted: Sat Aug 17, 2002 4:51 pm    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

You could set up a trigger based on queue depth (trigtype (depth) + trigdpth(x) ) that triggers a java application. Then the java app would clear the messages. You could clear by getting all messages or using pcf clear queue command. You would probably want to have the code 'put diable' the queue, clear it, and then 'put enable' again.

Charlie
Back to top
View user's profile Send private message
Reconda
PostPosted: Mon Aug 19, 2002 3:48 am    Post subject: Clearing Messages Reply with quote

Apprentice

Joined: 20 Jun 2002
Posts: 40

Our tool QN-AppWatch would give you the ability to clear messages on the queue. Our solution is very useful in a testing environment. You can get more information at our website at www.reconda.com or by attending our webinar on September 6th from 12-1pm EST. You can register on our homepage.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kolban
PostPosted: Mon Aug 19, 2002 4:10 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

You can also deplete messages from a queue, even when a queue is open using the MQJExplorer tool ...

see http://www.mqseries.net/phpBB/viewtopic.php?t=419
Back to top
View user's profile Send private message
jc_squire
PostPosted: Mon Aug 19, 2002 5:52 pm    Post subject: Reply with quote

Centurion

Joined: 14 Apr 2002
Posts: 105
Location: New Zealand

you can also setup a trigger to start a second instance of the application to process messages quicker thereby making the q available - this depends on what hardware resources you have available.

Regards
_________________
J C Squire
IBM Certified Specialist - MQSeries
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 » Clearing messages of 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.