Methods Summary |
---|
public void | begin()
javaeeTM.begin();
|
public void | commit()
javaeeTM.commit();
|
public com.sun.xml.ws.tx.coordinator.CoordinationContextInterface | getCoordinationContext()Get the coordination context associated with the current transaction.
Returns null if none set.
try {
return (CoordinationContextInterface) javaeeSynchReg.getResource("WSCOOR-SUN");
} catch (IllegalStateException ise) {
return null; // no current JTA transaction, so return null
}
|
public static com.sun.xml.ws.tx.common.ATTransactionManagerImpl | getInstance()
return singleton;
|
public int | getStatus()
// TODO return ATCoordinator status mapped to java ee transaction status
// return javaeeTM.getStatus();
throw new UnsupportedOperationException("Not yet implemented");
|
public com.sun.xml.ws.api.tx.ATTransaction | getTransaction(java.lang.String coordId)
return coordIdTxnMap.get(coordId);
|
public javax.transaction.Transaction | getTransaction()
ATTransaction result = null;
final Transaction jtaTxn = javaeeTM.getTransaction();
if (jtaTxn == null) {
return result;
}
CoordinationContextInterface cc = this.getCoordinationContext();
if (cc != null) {
result = getTransaction(cc.getIdentifier());
if (result == null) {
result = new ATTransactionImpl(jtaTxn, cc);
coordIdTxnMap.put(cc.getIdentifier(), result);
}
}
return result;
|
public void | resume(javax.transaction.Transaction transaction)
javaeeTM.resume(transaction);
|
public void | rollback()
javaeeTM.rollback();
|
public void | setCoordinationContext(com.sun.xml.ws.tx.coordinator.CoordinationContextInterface coordinationCtx)Set the coordination context associated with the current transaction.
javaeeSynchReg.putResource("WSCOOR-SUN", coordinationCtx);
|
public void | setRollbackOnly()
javaeeSynchReg.setRollbackOnly();
|
public void | setTransactionTimeout(int seconds)
javaeeTM.setTransactionTimeout(seconds);
|
public javax.transaction.Transaction | suspend()
return javaeeTM.suspend();
|