views:

36

answers:

1

When using the Java Transaction API (JTA) and I register a Synchronization with the current transaction, will the afterCompletion() method be called if the transaction times out? If so, when will the afterCompletion() method be called, i.e. as soon as the transaction runs over the allotted timeout value or when the first operation on the transaction post timeout occurs? What value will the status argument have (I assume it will be STATUS_ROLLEDBACK)?

+1  A: 
Pascal Thivent