camel-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/CAMEL-5401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13403781#comment-13403781
] 

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: https://issues.apache.org/jira/browse/CAMEL-5401
>             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
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

        

Mime
View raw message