Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
{snippet:id=e3|lang=java|url=camel/trunk/camel-core/src/test/java/org/apache/camel/processor/intercept/InterceptSendToEndpointTest.java}
Tip
titleConditional skipping

The combination of skip with a when predicate behaves differently depending on the Camel version:

  • Before Camel 2.10: the skipping is applied unconditionally whether the when predicate is matched or not, i.e. the when predicate only determines whether the body of the interception will execute, but it does not control skipping behaviour
  • As of Camel 2.10: the skipping only occurs if the when predicate is matched, leading to more natural logic altogether.

Using from Spring DSL

Intercept endpoint is of course also available using Spring DSL.

...