[
https://issues.apache.org/jira/browse/CAMEL-5401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-5401:
-------------------------------
Component/s: camel-spring
> Not all RoutePolicy callback methods are invoked
> ------------------------------------------------
>
> Key: CAMEL-5401
> URL: https://issues.apache.org/jira/browse/CAMEL-5401
> Project: Camel
> Issue Type: Bug
> Components: camel-core, camel-spring
> Affects Versions: 2.9.2, 2.10.0
> Environment: Win 7 x64, jdk 7u4
> Reporter: Andrii Rubtsov
> Assignee: Claus Ibsen
> Fix For: 2.9.3, 2.10.1
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira