You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

AdviceWith

Available as of Camel 2.1

AdviceWith is used for testing Camel routes where you can advice an existing route before its being tested. What adviceWith allows is to changes some factors on the route before the test is being run.

At current time you can advice an existing route by adding interceptors, onException etc. which then will apply for the route being advice.

For example in the route below we intercept sending a message to the mock:foo endpoint and detour the message.
TODO: e1

At current time you cannot alter the route by adding or changing exiting nodes in the route path. In the future we may want to introduce a special AdviceRouteBuilder which has special builder methods for altering the route etc.

  • No labels