camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadrian Zbarcea (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-482) Incorrect behavior of intercept() if more than one route configured
Date Fri, 25 Apr 2008 00:52:44 GMT

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

Hadrian Zbarcea commented on CAMEL-482:
---------------------------------------

I am disabling InterceptorLogTest pending fix for this issue (code above is a modified version
of this test).  Must be reenabled and working when this is resolved.

> Incorrect behavior of intercept() if more than one route configured
> -------------------------------------------------------------------
>
>                 Key: CAMEL-482
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-482
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.3.0
>            Reporter: Hadrian Zbarcea
>            Assignee: Hadrian Zbarcea
>             Fix For: 1.4.0
>
>
> With the RouteBuilder defining more than one route, the intercept() will actually have
one instance of the interceptor shared among routes which causes the odd behavior of proceeding
to a destination in all routes.  For instance in the example below, sending a message to "direct:foo"
will cause both "mock:one" and "mock:two" to receive a message.
> {code}
>     protected RouteBuilder createRouteBuilder() throws Exception {
>         return new RouteBuilder() {
>             public void configure() throws Exception {
>                 intercept().to("log:foo").proceed();
>                 from("direct:foo").to("mock:one");
>                 from("direct:bar").to("mock:two");
>             }
>         };
>     }
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message