activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: How does prefetch work with client acknoledgements?
Date Wed, 27 Jul 2011 17:57:51 GMT
does the message appear as inflight to any consumer? What is the
inflight count on the destination? If it is >1 you should be able to
track it to a consumer that is probably cached.

On 27 July 2011 10:24, pwanner <pwanner@pwanner.com> wrote:
> Hi everybody,
>
> I just had a server crash today and the slave ActiveMQ instance went active,
> and a message is stuck in the queue. The new messages are consumed but there
> is one that stays.
>
> This is very annoying...
>
> I use ActiveMQ 5.5.0 (same problem with 5.4.2) and Spring 3.0.5 as the
> consumer.
>
> Below is the config:
>
> <jms:listener-container concurrency="5"
>        destination-type="queue"
>        connection-factory="amqCachedConnectionFactory"
>        transaction-manager="transactionManager"
>        acknowledge="transacted" >
>        <jms:listener destination="events" ref="eventHandler" />
> </jms:listener-container>
>
> <bean id="amqCachedConnectionFactory"
>        class="org.springframework.jms.connection.CachingConnectionFactory"
>        p:targetConnectionFactory-ref="amqConnectionFactory"
>        p:sessionCacheSize="5" />
>
> <amq:connectionFactory id="amqConnectionFactory"
>
> brokerURL="failover://(${broker.url.1},${broker.url.2})?jms.prefetchPolicy.all=1&amp;timeout=5000"
> />
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Messages-stuck-in-queue-tp3244342p3697960.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
http://fusesource.com
http://blog.garytully.com

Mime
View raw message