camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwijngaa <>
Subject Re: BreadcrumbId is null after using transacted
Date Tue, 26 Aug 2014 12:30:41 GMT
Hi Claus,

The route was a bit simplified too much ;-)
    from("step4") should be: from("direct:step4")
Basically we're trying to put a message on the queue (toEndPoint ==
,update a record in the database and check if the database record was indeed
- all in a transaction!

We are using Fuse 6.1, so that is Camel 2.12.0 i think.

BTW: i can work around this by saving the breadcrumbId before the transacted 
and restore the breadcrumbId after it, but it feels odd.

// before / backup:
        String breadcrumbId = exchange.getIn().getHeader("breadcrumbId",
        exchange.setProperty("breadcrumbIdBackup", breadcrumbId);
// after / restore it:
         String breadcrumbIdBackup =
exchange.getProperty("breadcrumbIdBackup", String.class);
         exchange.getIn().setHeader("breadcrumbId", breadcrumbIdBackup);


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message