Use advice-with if you wanna "mess around" with routes.

On Fri, Sep 27, 2013 at 5:05 PM, Charles Moulliard <[email protected]> wrote:
> Hi,
>
> Since Camel 2.12, the following syntax is not longer tolerated/accepted. Is
> there a workaround ....
>
>     public void testInvalidTransactedInterceptFrom() throws Exception {
>         try {
>             context.addRoutes(new RouteBuilder() {
>                 @Override
>                 public void configure() throws Exception {
>
>                     interceptFrom().transacted();
>
>                     from("direct:start")
>                             .split(body())
>                             .to("mock:split")
>                             .end();
>                 }
>             });
>             fail("Should fail");
>         } catch (IllegalArgumentException e) {
>             assertTrue(e.getMessage().startsWith("The output must be added
> as top-level on the route."));
>         }
>     }
>
> Regards,
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to