Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.arjuna.webservices11.wsat.client;
  
  import  org.jboss.ws.api.addressing.MAP;
 
The Client side of the Completion Coordinator.

Author(s):
kevin
 
 {
    
The client singleton.
 
     private static final CompletionCoordinatorRPCClient CLIENT = new CompletionCoordinatorRPCClient() ;

    
The commit action.
 
     private String commitAction = null;
    
The rollback action.
 
     private String rollbackAction = null;

    
Construct the completion coordinator client.
 
     {
         // final HandlerRegistry handlerRegistry = new HandlerRegistry() ;
 
         // Add WS-Addressing
         // AddressingPolicy.register(handlerRegistry) ;
         // Add client policies
         // ClientPolicy.register(handlerRegistry) ;
     }

    
Send a commit request.

Parameters:
map addressing context initialised with to and message ID.
identifier The identifier of the initiator.
Throws:
com.arjuna.webservices.SoapFault For any errors.
java.io.IOException for any transport errors.
 
     public boolean sendCommit(final W3CEndpointReference endpointfinal MAP map)
         throws SoapFaultIOException
     {
         CompletionCoordinatorRPCPortType port = getPort(endpointmap);
         Notification commit = new Notification();
 
         try {
             return port.commitOperation(commit);
         } catch (SOAPFaultException sfe) {
             throw SoapFault11.create(sfe);
         }
     }

    
Send a rollback request.

Parameters:
map addressing context initialised with to and message ID.
identifier The identifier of the initiator.
Throws:
com.arjuna.webservices.SoapFault For any errors.
java.io.IOException for any transport errors.
 
     public boolean sendRollback(final W3CEndpointReference endpointfinal MAP map)
         throws SoapFaultIOException
     {
         CompletionCoordinatorRPCPortType port = getPort(endpointmap);
         Notification rollback = new Notification();
 
         try {
             return port.rollbackOperation(rollback);
         } catch (SOAPFaultException sfe) {
             throw SoapFault11.create(sfe);
         }
     }

    
Get the Completion Coordinator client singleton.

Returns:
The Completion Coordinator client singleton.
    public static CompletionCoordinatorRPCClient getClient()
    {
        return ;
    }

    
obtain a port from the completion coordinator endpoint configured with the instance identifier handler and the supplied addressing properties supplemented with the given action

Parameters:
endpoint
map
action
Returns:
                                                  final MAP map,
                                                  final String action)
    {
        AddressingHelper.installNoneReplyTo(map);
        return WSATClient.getCompletionCoordinatorRPCPort(endpointactionmap);
    }
New to GrepCode? Check out our FAQ X