A transaction that is synchronized with a Java Transaction Service (JTA) transaction with JCA.
TODO This is revision 984 of JTATransactionImpl that Erik wrote. It should be merged with JTATransactionImpl
when Erik and Joerg understand what both are requiring, merge them, and then document them.

beforeCompletion

The beforeCompletion method is called by the transaction manager prior to the start of the two-phase
transaction commit process.
This is not called in JCA mode

Specified by:

beforeCompletion in interface javax.transaction.Synchronization

afterCompletion

public void afterCompletion(int status)

This method is called by the transaction manager after the transaction is committed or rolled back.
Must be synchronized because some callees expect to be owner of this object's monitor (internalPostCommit()
calls closeSQLConnection() which calls notifyAll()).
This is not called in JCA mode