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.

Reply via email to