You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by lsclark <li...@rackspace.com> on 2009/10/31 00:20:45 UTC

Timing out inactive connections on persistent queues

Scenario: I have a consumer of a persistent queue that is prefetching
messages.  I'd like to implement a timeout on the broker side to timeout the
connection and release all prefetched messages back for redelivery if the
consumer hasn't ack'd back any message in some configurable period of time.

I'm currently running on ActiveMQ 5.1, but will be releasing 5.3 soon and
would like to target a solution for ActiveMQ 5.3
-- 
View this message in context: http://old.nabble.com/Timing-out-inactive-connections-on-persistent-queues-tp26138247p26138247.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Timing out inactive connections on persistent queues

Posted by Rob Davies <ra...@gmail.com>.
On 30 Oct 2009, at 23:20, lsclark wrote:

>
> Scenario: I have a consumer of a persistent queue that is prefetching
> messages.  I'd like to implement a timeout on the broker side to  
> timeout the
> connection and release all prefetched messages back for redelivery  
> if the
> consumer hasn't ack'd back any message in some configurable period  
> of time.
>
> I'm currently running on ActiveMQ 5.1, but will be releasing 5.3  
> soon and
> would like to target a solution for ActiveMQ 5.3
> -- 
> View this message in context: http://old.nabble.com/Timing-out-inactive-connections-on-persistent-queues-tp26138247p26138247.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

There is a an InactivityMonitor attached to the transport - the  
default is 30 seconds - see http://activemq.apache.org/configuring-wire-formats.html
This is to monitor for dormant clients, zombie sockets etc - which  
might provide you with what you want ?

cheers,

Rob

Rob Davies
http://twitter.com/rajdavies
I work here: http://fusesource.com
My Blog: http://rajdavies.blogspot.com/
I'm writing this: http://www.manning.com/snyder/