BATCHEE-44 exceptions during rollback must not hide the real problem exceptions
authorMark Struberg <struberg@apache.org>
Wed, 9 Jul 2014 11:15:04 +0000 (13:15 +0200)
committerMark Struberg <struberg@apache.org>
Wed, 9 Jul 2014 11:15:04 +0000 (13:15 +0200)
commitcd766e03270258133248a985940dc6c092805a4f
treef5409dfbb6e0b0c95626ad9647196d11d1df9a54
parentb984c4361b4f758337160830648aa86a373d59c4
BATCHEE-44 exceptions during rollback must not hide the real problem exceptions

We now only log.error exceptions which happen during rollback but throw
the original Exception.
Prior to this change any Exception we got during rollback (e.g. if the connection
was already closed) did make us loose all the original Exception information.
jbatch/src/main/java/org/apache/batchee/container/services/persistence/JPAPersistenceManagerService.java
jbatch/src/main/java/org/apache/batchee/container/services/persistence/jpa/TransactionProvider.java
jbatch/src/main/java/org/apache/batchee/container/services/persistence/jpa/provider/DefaultTransactionProvider.java