JTA Sync & Timeout

When using the Java Transaction API (JTA), and I register the synchronization with the current transaction, will the afterCompletion () method be called if the transaction expires? If so, when will the afterCompletion () method be called, i.e. As soon as the transaction is executed on the selected timeout value, or when the first transaction timeout operation occurs? What value will the state argument have (suppose it will be STATUS_ROLLEDBACK)?

+3
source share
1 answer

When using the Java Transaction API (JTA) and I register Synchronizationwith the current transaction, will the method be called afterCompletion()if the transaction expires?

afterCompletion , , .

, afterCompletion(), .. - ?

AFAIK, ( ) , . , .

(, )?

Status.STATUS_ROLLEDBACK afterCompletion.

+2

Source: https://habr.com/ru/post/1751987/


All Articles