activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: initialRedeliveryDelay and maximumRedeliveries not working in "\progress\fuse-message-broker-5.3.0.4\conf\activemq.xml"
Date Thu, 04 Feb 2010 13:59:07 GMT
On Thu, 2010-02-04 at 05:45 -0800, psharma8@sapient.com wrote:
> 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.

This looks like C# code, can you elaborate on your setup?

Regards
Tim.



-- 
Tim Bish
http://fusesource.com
http://timbish.blogspot.com/




Mime
View raw message