/** * Returns the current state of the transaction. The returned state can be any of the * <code>TransactionConstants</code> values. * * @return an <code>int</code> representing the state of the transaction * @throws UnknownTransactionException if the transaction is unknown to the transaction manager, * either because the transaction ID is incorrect or because * the transaction is complete and its state has been * discarded by the manager. * @throws RemoteException if there is a communication error * @see TransactionConstants */ public int getState() throws UnknownTransactionException, RemoteException { return mgr.getState(id); }
@Override public int getState() throws UnknownTransactionException, RemoteException { if (isXid()) return mgr.getState(_id); return super.getState(); }
int state = txnmgr.getState(tid); switch (state) { case VOTING: