camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadrian Zbarcea (JIRA)" <>
Subject [jira] Commented: (CAMEL-481) Interceptors to proceed by default
Date Thu, 19 Jun 2008 02:44:00 GMT


Hadrian Zbarcea commented on CAMEL-481:

I think my proposal above is not very good because of the intercept(Predicate predicate) flavor.
 I think a stop() would be more appropriate.

One more aspect.  In the following scenario, what would be the expected default behavior assuming
an implicit proceed?



Clearly the "mock:b" endpoint will only receive the message if header("foo") equals "bar",
but what about "mock:a", should it be invoked anyway, or only if the predicate didn't fire?
 My mild preference would be to only invoke "mock:a" if the predicate did not fire.

> Interceptors to proceed by default
> ----------------------------------
>                 Key: CAMEL-481
>                 URL:
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 1.3.0
>            Reporter: Hadrian Zbarcea
>            Assignee: Hadrian Zbarcea
>             Fix For: 1.4.0
> intercept().to(...) should proceed by default, without and explicit .proceed().  To stop
processing after intercept use the following syntax:
> intercept(false).to(intercept-endpoint)
> View nabble thread:

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

View raw message