/** * Create a new InboundBridge to manage the given subordinate JTA transaction. * * @param xid the subordinate transaction id * @throws XAException * @throws SystemException */ InboundBridge(Xid xid) throws XAException, SystemException { txbridgeLogger.logger.trace("InboundBridge.<ctor>(Xid="+xid+")"); this.xid = xid; getTransaction(); // ensures transaction is initialized }
public void setRollbackOnly() throws XAException, SystemException { txbridgeLogger.logger.trace("InboundBridge.setRollbackOnly("+xid+")"); getTransaction().setRollbackOnly(); }
/** * Associate the JTA transaction to the current Thread. * Typically used by a server side inbound handler. * * @throws XAException * @throws SystemException * @throws InvalidTransactionException */ public void start() throws XAException, SystemException, InvalidTransactionException { txbridgeLogger.logger.trace("InboundBridge.start(Xid="+xid+")"); Transaction tx = getTransaction(); TransactionManager.transactionManager().resume(tx); }