Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.arjuna.wst11.stub;
 
A volatile participant registered on behalf of an interposed WS-AT coordinator in order to ensure that volatile participants in the subtransaction are prepared at the right time.
 
    {
        this. = coordinator;
    }

    
This will be called when the parent coordinator is preparing its volatile participants and should ensure that the interposed cooordinator does the same.

Returns:
the Vote returned by the subordinate coordinator.
Throws:
com.arjuna.wst.WrongStateException if the subordinate coordinator does the same
com.arjuna.wst.SystemException if the subordinate coordinator does the same
    public Vote prepare() throws WrongStateExceptionSystemException {
        if (.prepareVolatile()) {
            return new Prepared();
        } else {
            return new Aborted();
        }
    }

    
this is called as part of the after completion processing and should ensure that the interposed coordinator performs its afterCompletion processing

    public void commit() throws WrongStateExceptionSystemException {
        .commitVolatile();
    }

    
this is called as part of the after completion processing and should ensure that the interposed coordinator performs its afterCompletion processing

    public void rollback() throws WrongStateExceptionSystemException {
        .rollbackVolatile();
    }

    
this should never get called

    public void unknown() throws SystemException {
    }

    
this should never get called

    public void error() throws SystemException {
    }

    
the interposed coordinator
New to GrepCode? Check out our FAQ X