Re: Remove message queue after a day with or with or without a message

2013-09-24 Thread wcpolicarpio
I Opened a JIRA ticket, for now I will try create a workaround based on your suggestion. Again thank you for your help. Walter -- View this message in context: http://activemq.2283324.n4.nabble.com/Remove-message-queue-after-a-day-with-or-with-or-without-a-message-tp4671669p4671807.html Sent f

Re: Remove message queue after a day with or with or without a message

2013-09-23 Thread Christian Posta
i think in your case, it might be best to use gcInactiveDestination w/ TTL on the message as gary suggests. You should be able to build up your own monitoring solution using Advisory messages, and tracking how long dests have been idle. Again, camel would be suitable for this. It might also make

Re: Remove message queue after a day with or with or without a message

2013-09-23 Thread wcpolicarpio
Thank you Christian and Gary for responding to my question. Sorry, I forgot to mention that the destination should be idle for a period of time, let say a day. Is there a way to know how long the destination is idle before deleting? gcInactiveDestination only works when there are no pending messag

Re: Remove message queue after a day with or with or without a message

2013-09-20 Thread Gary Tully
use a ttl or message expiry on messages for that destination. Or use org.apache.activemq.broker.util.TimeStampingBrokerPlugin to provide a expiry override via zeroExpirationOverride > 0 On 19 September 2013 19:02, wcpolicarpio wrote: > Hi Everyone, > > > gcInactiveDestination will only discard th

Re: Remove message queue after a day with or with or without a message

2013-09-19 Thread Christian Posta
Use camel. Use a timer route and the jmx component an schedule purging the dest and then removing it via jmx On Thursday, September 19, 2013, wcpolicarpio wrote: > Hi Everyone, > > > gcInactiveDestination will only discard the destination if > it doesn't have any messages. Is there a way to force