camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dhruv.sachdeva" <>
Subject JPA transaction roll back
Date Thu, 23 May 2013 08:48:40 GMT
Hi .I am implementing idempotent consumer pattern for filtering duplicate
When i am creating a new record in database and when i run the service mix
container i get error on container something like this:--

Failed to commit.Jpa transaction rollback.

My logic:-"@@@@@@@@@processenter@@@@@@@");
					final Message in = exchange.getIn();"@@@@@@@@@processenterrrrrrrrrrrr11111");
					final Customer message =in.getHeader(CUSTOMER_NUMBER, Customer.class);

					  //final Customer message = in.getBody(Customer.class);"@@@@@@@@@processenterrrrrrrrrrrrrrrrrrrrrrrrrrrrrr22222");
					message.setCustomerUpdatedDate(DateUtils.getCurrentDate());"message got");

Container is printing 2 log processenter and process enter 1 and after then
container is breaking and no log message is coming.I have flushed the
template also.

Please can  u advice me on this.

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

View raw message