[ 
https://issues.apache.org/activemq/browse/CAMEL-1129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47806#action_47806
 ] 

Willem Jiang commented on CAMEL-1129:
-------------------------------------

@Claus

That's because if we call the sync processor, the caller will block and wait 
for processor finish it's work then handle the exchange.
If we put the redelivery work into the timer and return from the processor, the 
exchange will not handle rightly.

Current Camel AsyncProcessor API can't handle the ThreadLocal stuff, in that 
case , I think we  need switch to use sync processor API.



> Enhance ErrorHandler RedeliveryPolicy with a Timer manager to avoid locking 
> current thread while sleeping
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1129
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1129
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 1.5.0
>            Reporter: Ron Gavlin
>            Assignee: Willem Jiang
>
> The ErrorHandler RedeliveryPolicy appears to lock threads while sleeping 
> until the next redelivery. With lots of concurrent requests requiring 
> increasing redelivery times, this can be a scalability problem.
> The RedeliveryPolicy should support the use of a timer thread that would be 
> responsible for managing the "timeouts" and firing the redelivery.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to