The implementation of CosTransactions::Current. In a multi-threaded environment where threads can terminate transactions they may not have started, then it is possible for a thread to call commit/rollback/rollback_only on a transaction which has already been (or is in the process of being) terminated. We assume that the subsequent thread is still associated with the transaction so that it can determine its status, rather than simply disassociate it when it tries to terminate and return NoTransaction, so we would return INVALID_TRANSACTION. This allows us to distinguish between the situation where there really is no transaction associated with the thread.
@author Mark Little (mark@arjuna.com)
@version $Id: CurrentImple.java 2342 2006-03-30 13:06:17Z $
@since JTS 1.0.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.