How long until queues are garbage collected when they have no messages?

2014-06-14 Thread Kevin Burton
OK.. making progress here but this one is stumping me. On Apollo, if a queue has no more messages, and they're fully consumed, the queue sticks around for like 30 seconds, and then it vanishes. I have some code on ActiveMQ doing the same thing, but the queues are staying around forever… - how lo

Re: Re: Should connection.createSession throw an exception if the connection isn't started?

2014-06-14 Thread yuqings...@qq.com
I think there is a problem with cleaning up acknowledged messages from database when they belong to a topic which consumers use selectors in ActiveMQ. The delete statement (that can be configured) takes min value of acked messages of all selectors in the topic, but if consumers of messages use sele

Re: Should connection.createSession throw an exception if the connection isn't started?

2014-06-14 Thread John D. Ament
This is one of the *great* features in the JMS spec. On Sat, Jun 14, 2014 at 4:19 PM, Kevin Burton wrote: > So this bit me… mostly because I'm new to activemq but also because > silently failing isn't fun. > > You can create a connection, create a producer, send messages on it, and > attempt to r

Should connection.createSession throw an exception if the connection isn't started?

2014-06-14 Thread Kevin Burton
So this bit me… mostly because I'm new to activemq but also because silently failing isn't fun. You can create a connection, create a producer, send messages on it, and attempt to receive messages, all while the connection hasn't been started. So my code compiled, but of course no IO was begin pe

Re: Is it possible to get a list of queues on a remote broker?

2014-06-14 Thread Claus Ibsen
Hi There is a bin/activemq-admin script you can use to query a local / remote broker about details. It uses JMX for that, so you would need network connectivity that works with that. If you are more a HTTP/REST guy then there is a REST api in ActiveMQ exposed by Jolokia On a local broker its usu