activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim Grigoriev <>
Subject Listener freezes on redelivery
Date Thu, 28 Sep 2006 16:07:54 GMT

i use 4.0.1 actovemq.
JMSFactory and Broker configuration:

<bean id="jmsFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL">
        <property name="redeliveryPolicy">
            <bean class="org.apache.activemq.RedeliveryPolicy">
                <property name="initialRedeliveryDelay" value="100000"/>
                <property name="backOffMultiplier" value="4"/>
                <property name="useExponentialBackOff" value="false"/>
                <property name="maximumRedeliveries" value="5"/>

<bean id="broker" class=""
          init-method="start" destroy-method="stop">
        <property name="persistent" value="true"/>
        <property name="transportConnectorURIs">
        <property name="persistenceAdapter">
            <bean id="myPersistenceAdapter"
                <property name="useJournal" value="false"/>
                <property name="dataSource" ref="dataSource"/>
        <property name="useJmx" value="false"/>

And here my listener configuration:

<bean id="listenerContainer"
        <property name="concurrentConsumers" value="1"/>
        <property name="connectionFactory" ref="jmsFactory"/>
        <property name="destination" ref="destination"/>
        <property name="messageListener" ref="messageListener"/>
        <property name="sessionTransacted" value="true"/>

When Listener receives message and if there's an error then Listener throws
RuntimeException. This message should be redeliveried in
"initialRedeliveryDelay" ms. But in this situation Listener is freezed and
it doesn't process any other messages i. It waits "initialRedeliveryDelay"
ms and tries to process old redelivery message.
Is it bug or activemq feature ?
Because i expected that Listener processed other messages in queue and when
redelivery time came only then Listener processed redeliveried message. What
we have now - big queue growing and very low perfomance.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message