Add the statistics plugin to the broker, and then create a monitoring program that will watch your queues, and if they go to zero producers, then delete them. Name the queues with a standard prefix, so the monitoring application can select all of them with a wildcard pattern.
On Fri, Apr 26, 2013 at 1:06 PM, SledgeHammer <gro...@firstam.com> wrote: > Per a previous thread, it was suggested to me to have each producer create > its own queue so that I can implement a "round-robin the producers" type > scheme... so I'm doing something like: > > _destination = SessionUtil.GetDestination(_session, _strQueueName); > > _strQueueName is initialized as String.Format("queue://{0}", > Guid.NewGuid().ToString()); > > this part all works fine, I can create and delete the queue and send & > recv. > Problem is if the producer doesn't play nice or crashes, etc. it's going to > leave it queue around. > > Is there a way to have the queue delete itself if the producer doesn't exit > clean? I saw a policy that can delete inactive queues, but that requires > the > queue to be empty. I can not have a lifetime on the messages. > > I can't use a temp queue either because I need it to show up in the admin > page for monitoring purposes. > > I can have an arbitrary number of producers... I just want to make sure > that > I don't end up with 1000 dummy queues on the admin page if producers don't > exit clean. > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Cleaning-up-queues-tp4666286.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >