Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.9.2, 2.10.0
-
None
-
Win 7 x64, jdk 7u4
-
Unknown
Description
I am looking for a way to get notified when route is being stopped/started (resumed/suspended). I have implemented trivial logging RoutePolicy (extending from RoutePolicySupport). However, during my tests I found that only onInit, onExchangeBegin and onExchangeDone methods are invoked. I tried both approaches - stopping/starting and suspending/resuming, but neither one worked.
Route state is being handled from another thread using "CamelContext.*Route" methods group.
I am using SpringCamelApplicationContext. Route is configured using: routePolicyRef attribute of route tag.
I am fairly new to Camel. Let me know if I am missing something. Thanks.