Camel Timer component does not trigger with configured "period" after route restart
Issue
We have encountered an issue with the Camel timer. We have a bean that starts/stops the route where the timer is defined. It works pretty well while the route is shutdown successfully and no exchange is inflight.
If the bean stops the route while the exchange is still inflight, Camel will wait 300 seconds.
If, for some reasons, the exchange couldn’t be completed after 300 seconds, the DefaultShutdownStrategy will force a shutdown. Then the issue happens when the bean restarts the route.
The timer is configured to trigger an event every 2 seconds. However, after restart, it sometimes waits much longer (several hours) to trigger the first event. Although all subsequent triggers work fine.
Do you know why and how to prevent this?
Environment
- JBoss Fuse 6.0
- JBoss Fuse 6.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
