Hello,
a question about the usage of JTATransaction along with the usage pattern described in
http://www.hibernate.org/hib_docs/refer ... exceptions.
In my code a transaction spawns across multiple codes execution all implemented using the pattern above, i.e. there are many Session instances involved:
1) start transaction
2) code execution 1
3) code execution 2
4) ...
5) commit transaction
Every code execution terminates with a Transaction.commit(), but the "real" transaction didn't yet commit, so is it right that the JTATransaction implementation calls session.afterTransactionCompletion(status==Status.STATUS_COMMITTED); on step 2), 3) and 4) even if the status is not yet == Status.STATUS_COMMITTED (it will be only after a successful step 5)) ?
That is although the transaction may end up correctly, the session instances will never be correctly notified of a successful commit.
Best Regards
Massimo