Author |
Message
|
Vin |
Posted: Fri Aug 16, 2002 10:52 am Post subject: Clearing messages of a Queue? |
|
|
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 |
|
 |
clindsey |
Posted: Sat Aug 17, 2002 4:51 pm Post subject: |
|
|
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 |
|
 |
Reconda |
Posted: Mon Aug 19, 2002 3:48 am Post subject: Clearing Messages |
|
|
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 |
|
 |
kolban |
Posted: Mon Aug 19, 2002 4:10 am Post subject: |
|
|
 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 |
|
 |
jc_squire |
Posted: Mon Aug 19, 2002 5:52 pm Post subject: |
|
|
 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 |
|
 |
|