camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From priya <>
Subject Re: Unable to rollback exchange while unmarshalling a file
Date Tue, 08 May 2012 07:18:35 GMT
Thanks for the reply.We are able to achieve the complete Exchange rollback
by shareUnitOfWork option on splitter with camel-core-9.2.0 when an
exception occurs during unmarshalling. And further spillting of exchange
stops.But all the exchange's before unmarshaller exception still aggregates
and invokes my endpoint("direct:sub")  which takes care of DB Insertions.I
want to achieve rollback of these exchange from DB as well.
Note: I am able to rollback the DB insertions in case of any SQL exception
using transacted().

My current route now looks like
from( "seda:xyz”)
 .split(new SplitterExpression(inputFile)).shareUnitOfWork()
        .transform( new Unmarshaller()) .aggregate(aggregationStrategy)

       .when(condition1).process( new myBean(myDAO))
        .when(condition2).process(new myBean1(myDAO)) 

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

View raw message