Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.arjuna.mwlabs.wst11.at.remote;
 
Implementation of class used to create a subordinate AT transaction This class normally redirects all calls to call the corresponding method of the singleton instance which implements UserTransaction. In the case of a begin call it redirects to a beginSubordinate call on the UserTransaction singleton. In the case of a commit or rollback it throws a WrongStateException, irrespective of whether the current transaction is top-level or subordinate since these operations should only be attempted via the UserTransactionImple singleton obtained by calling TransactionFactory.userTransaction()
        return this;
    }
    public void begin() throws WrongStateExceptionSystemException {
        ((UserTransactionImple)UserTransactionImple.getUserTransaction()).beginSubordinate(0);
    }

    
Start a new subordinate transaction with the specified timeout as its lifetime. If an AT transaction is not currently associated with this thread then the WrongStateException will be thrown.
    public void begin (int timeoutthrows WrongStateExceptionSystemException
    {
        ((UserTransactionImple)UserTransactionImple.getUserTransaction()).beginSubordinate(timeout);
    }

    
it is inappropriate to call this even if the current transaction is a top level AT transaction so we always throw a WrongStateException.
        throw new WrongStateException();
    }

    
it is inappropriate to call this even if the current transaction is a top level AT transaction so we always throw a WrongStateException.
        throw new WrongStateException();
    }
    public String transactionIdentifier() {
        return UserTransactionImple.getUserTransaction().transactionIdentifier();
    }
New to GrepCode? Check out our FAQ X