activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "psharma8@sapient.com" <pshar...@sapient.com>
Subject initialRedeliveryDelay and maximumRedeliveries not working in "\progress\fuse-message-broker-5.3.0.4\conf\activemq.xml"
Date Thu, 04 Feb 2010 13:45:22 GMT

Hi,
I have made below changes at
"\progress\fuse-message-broker-5.3.0.4\conf\activemq.xml".

  <bean id="redeliveryPolicyConfig"
class="org.apache.camel.processor.RedeliveryPolicy">
  <property name="maximumRedeliveries" value="4" /> 
  <property name="initialRedeliveryDelay" value="30000" /> 
  <property name="useExponentialBackOff" value="false" /> 
  <property name="backOffMultiplier" value="2" /> 
  </bean>

1. When it comes to redelivery of a message. It does not wait for 30
seconds.
2. And even maximumRedeliveries are not just 4. It is getting delivered
unlimited.

In code, I am using the session.commint and session.rollback.

            if (mapMessage.IsMessageDelivered)
            {
                this.session.Commit();
            }
            else
            {
                Console.WriteLine("Error - returning message to
topic.\r\n");
                this.session.Rollback();
                
            }

Please let me know how can it start working.
-- 
View this message in context: http://old.nabble.com/initialRedeliveryDelay-and-maximumRedeliveries-not-working-in-%22%5Cprogress%5Cfuse-message-broker-5.3.0.4%5Cconf%5Cactivemq.xml%22-tp27452192p27452192.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message