camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-1129) Enhance ErrorHandler RedeliveryPolicy with a Timer manager to avoid locking current thread while sleeping
Date Wed, 03 Dec 2008 07:20:05 GMT

    [ 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.


Mime
View raw message