camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <ch0...@gmail.com>
Subject Fwd: Workaround interceptFrom().transacted()
Date Tue, 01 Oct 2013 07:12:27 GMT
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




-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message