You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "psharma8@sapient.com" <ps...@sapient.com> on 2010/02/04 14:45:22 UTC
initialRedeliveryDelay and maximumRedeliveries not working in
"\progress\fuse-message-broker-5.3.0.4\conf\activemq.xml"
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.
Re: initialRedeliveryDelay and maximumRedeliveries not working in
"\progress\fuse-message-broker-5.3.0.4\conf\activemq.xml"
Posted by Timothy Bish <ta...@gmail.com>.
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/