activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neoman <>
Subject Activemeq Redelivery Question
Date Tue, 23 Aug 2011 03:30:24 GMT
Hello Everyone, 
We are currently using ActivemMQ 5.3.1 in our project. This is our
redelivery policy. 

        <bean id="redeliveryPolicy"
                <property name="initialRedeliveryDelay" value="15000" />
                <property name="maximumRedeliveries" value="3" />
                <property name="useExponentialBackOff" value="true" />
                <property name="backOffMultiplier" value="2" />

We are using Spring DefaultMessageListenerContainer for the message

    <bean id="queueListenerContainer"
        <property name="concurrentConsumers" value="3" />
        <property name="maxConcurrentConsumers" value="5" />
        <property name="destination" ref="queue" />
        <property name="messageListener" ref="queueListener" />
        <property name="connectionFactory" ref="jmsConnectionFactory" />
        <property name="cacheLevelName" value="CACHE_CONNECTION"/>
        <property name="receiveTimeout" value="10000"/>  
        <property name="sessionTransacted" value="true" />  

Connection Factory 

    <bean id="connectionFactory"
                <property name="brokerURL" value="tcp://localhost:61616"/>
                <property name="sendTimeout" value="1000"/>
                                <property name="redeliveryPolicy"
                                <property name="prefetchPolicy">
       	 <property name="queuePrefetch" value="1" />
       	 <property name="topicPrefetch" value="1" />        
    <bean id="jmsConnectionFactory"
destroy-method="stop" init-method="start">
        <property name="maxConnections" value="10" />
        <property name="maximumActive" value="100" />
        <property name="connectionFactory" ref="connectionFactory"/>

While testing, i found that if i post one poison message (meant to go to
DLQ) and one good message, the good message is getting processed only after
retrying the poison message three times. 
Its not getting processed immediately. Is it because of the Prefetch? 

Can any one suggest the issue with our configuration? 

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

View raw message