camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwijngaa <rino.van.wijngaar...@gmail.com>
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 ==
amq:queue:jadajada) 
,update a record in the database and check if the database record was indeed
updated
- 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.

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

Regards
Rino



--
View this message in context: http://camel.465427.n5.nabble.com/BreadcrumbId-is-null-after-using-transacted-tp5755210p5755701.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message