camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Babak Vahdat (Commented) (JIRA)" <>
Subject [jira] [Commented] (CAMEL-4668) JpaConsumer - Should rollback if processing of an exchange failed
Date Fri, 11 Nov 2011 13:56:51 GMT


Babak Vahdat commented on CAMEL-4668:

There's something baffling me here, which I like to understand/learn how it's possible that
it works!

Looking at [1] there's no try/catch or onException(....).handled(true) or the likes on the
route, so sending the payload SendEmail("") should blow up with a CamelExecutionException
wrapping the thrown IllegalArgumentException("Forced") through the usage of the template on
the client side (in this case the test method testTXRollback()) but it doesn't!!!

For sure I'm missing some pieces of this tricky puzzle...

> JpaConsumer - Should rollback if processing of an exchange failed
> -----------------------------------------------------------------
>                 Key: CAMEL-4668
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jpa
>    Affects Versions: 2.7.4, 2.8.2
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.7.5, 2.8.3, 2.9.0
> If a JPA consumer pickup X messages and then one of those messages fails to be processed
and throws an exception, then the JPA consumer should detect this and mark the TX as rollback.
> Currently there is a flaw which causes the JPA consumer to commit the batch.
> See nabble

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message