You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Vinod (JIRA)" <ji...@apache.org> on 2013/11/26 13:41:35 UTC
[jira] [Created] (CAMEL-7012) RedeliveryPolicy.redeliveryDelay is
not functioning as expected
Vinod created CAMEL-7012:
----------------------------
Summary: RedeliveryPolicy.redeliveryDelay is not functioning as expected
Key: CAMEL-7012
URL: https://issues.apache.org/jira/browse/CAMEL-7012
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.11.0
Reporter: Vinod
Please find the below configuration, That I tested. As per the below configuration retry will happen after 90 seconds. But actually retry is happening after 210 secons. That means 2 minute/120 second added without configuring/ without my knowledge.
<route id="1111" errorHandler="myDeadLetterChannel">
......
<route>
<bean id="myDeadLetterChannel" class="org.apache.camel.builder.DeadLetterChannelBuilder">
<property name="deadLetterUri" value="activemq:queue:deadLetterChannel?exchangePattern=InOut&replyTo=outgoing"/>
<property name="redeliveryPolicy" ref="myRedeliveryPolicy"/>
</bean>
<bean id="myRedeliveryPolicy" class="org.apache.camel.processor.RedeliveryPolicy">
<property name="maximumRedeliveries" value="3"/>
<property name="redeliveryDelay" value="90000"/>
</bean>
attached the logs
[Nov 26 17:19:05:509] INFO (CacheUriBuilder.java:18) - Start of CacheUriBuilder
[Nov 26 17:19:05:545] INFO (CacheUriBuilder.java:21) - Exchange body is : <clm-is-interface>
<interface>
<api>xxxxx</api>
<contextId>TXN141</contextId>
</interface>
</clm-is-interface>
[Nov 26 17:19:05:550] INFO (CacheUriBuilder.java:27) - Cache context ID is : TXN141
[Nov 26 17:19:05:550] INFO (CamelUtils.java:45) - Start of setExchangeHeadersTypeGet() method.
[Nov 26 17:22:35:913] INFO (CacheUriBuilder.java:18) - Start of CacheUriBuilder
[Nov 26 17:22:35:914] INFO (CacheUriBuilder.java:21) - Exchange body is : <clm-is-interface>
<interface>
<api>xxxxx</api>
<contextId>TXN141</contextId>
</interface>
</clm-is-interface>
[Nov 26 17:22:35:949] INFO (CacheUriBuilder.java:27) - Cache context ID is : TXN141
[Nov 26 17:22:35:950] INFO (CamelUtils.java:61) - End of setExchangeHeadersTypeGet() method.
[Nov 26 17:22:35:951] INFO (CacheUriBuilder.java:57) - End of CacheUriBuilder
[Nov 26 17:26:06:342] INFO (CacheUriBuilder.java:18) - Start of CacheUriBuilder
[Nov 26 17:26:06:343] INFO (CacheUriBuilder.java:21) - Exchange body is : <clm-is-interface>
<interface>
<api>xxxxx</api>
<contextId>TXN141</contextId>
</interface>
</clm-is-interface>
--
This message was sent by Atlassian JIRA
(v6.1#6144)