camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] [Commented] (CAMEL-5401) Not all RoutePolicy callback methods are invoked
Date Fri, 29 Jun 2012 08:51:44 GMT


Claus Ibsen commented on CAMEL-5401:

Thanks for reporting.

Yeah I just spotted a bug with the routePolicyRef not invoking certain callbacks.
It works in Java DSL though, so its an issue when using the routePolicyRef as you would do
in Spring XML.
> Not all RoutePolicy callback methods are invoked
> ------------------------------------------------
>                 Key: CAMEL-5401
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.2
>         Environment: Win 7 x64, jdk 7u4
>            Reporter: Andrii Rubtsov
>            Assignee: Claus Ibsen
> 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
> 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:!default.jspa
For more information on JIRA, see:


View raw message