Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.arjuna.wst11.stub;
 
import  org.jboss.ws.api.addressing.MAP;
public class CompletionRPCStub implements
    private String _id;
	public CompletionRPCStub(final String idfinal W3CEndpointReference completionCoordinator)
			throws Exception
	{
		 = completionCoordinator;
		 = id;
	}
	public void commit () throws TransactionRolledBackException,
    {
        final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ;
        boolean result;
        try
        {
            result = CompletionCoordinatorRPCClient.getClient().sendCommit(map) ;
        }
        catch (final SoapFault soapFault)
        {
            if (..equals(soapFault.getSubcode())) {
                throw new UnknownTransactionException(soapFault.getMessage());
            }
            throw new SystemException(soapFault.getMessage()) ;
        }
        catch (final Exception e)
        {
            throw new SystemException(e.getMessage()) ;
        }
        catch (final Throwable th)
        {
            th.printStackTrace() ;
            throw new SystemException(th.getMessage()) ;
        }
        if (!result) {
            throw new TransactionRolledBackException() ;
        }
	}
	{
        final MAP map = AddressingHelper.createNotificationContext(MessageId.getMessageId()) ;
        try
        {
            CompletionCoordinatorRPCClient.getClient().sendRollback(map) ;
        }
        catch (final SoapFault soapFault)
        {
            if (..equals(soapFault.getSubcode())) {
                throw new UnknownTransactionException(soapFault.getMessage());
            }
            throw new SystemException(soapFault.getMessage()) ;
        }
        catch (final Throwable th)
        {
            th.printStackTrace() ;
            throw new SystemException(th.getMessage()) ;
        }
	}
New to GrepCode? Check out our FAQ X