Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.arjuna.webservices11.wsat.sei;
  
  import  org.jboss.ws.api.addressing.MAP;
  
  import javax.jws.*;
 
This class was generated by the JAX-WS RI. JAX-WS RI 2.1.1-b03- Generated source version: 2.0
 
 @WebService(name = "ParticipantPortType", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsat/2006/06",
         // wsdlLocation = "/WEB-INF/wsdl/wsat-participant-binding.wsdl",
         serviceName = "ParticipantService",
         portName = "ParticipantPortType"
 )
 @HandlerChain(file="/ws-t_handlers.xml")
 @Addressing(required=true)
 public class ParticipantPortTypeImpl // implements ParticipantPortType
 {
 
     @Resource
     private WebServiceContext webServiceCtx;

    

Parameters:
parameters
 
     @WebMethod(operationName = "PrepareOperation", action = "http://docs.oasis-open.org/ws-tx/wsat/2006/06/Prepare")
     @Oneway
     @Action(input="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Prepare")
     public void prepareOperation(
         @WebParam(name = "Prepare", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsat/2006/06", partName = "parameters")
         Notification parameters)
     {
         MessageContext ctx = .getMessageContext();
         final Notification prepare = parameters;
         final MAP inboundMap = AddressingHelper.inboundMap(ctx);
         final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
 
         TaskManager.getManager().queueTask(new Task() {
             public void executeTask() {
                 ParticipantProcessor.getProcessor().prepare(prepareinboundMaparjunaContext) ;
             }
         }) ;
     }

    

Parameters:
parameters
 
     @WebMethod(operationName = "CommitOperation", action = "http://docs.oasis-open.org/ws-tx/wsat/2006/06/Commit")
     @Oneway
     @Action(input="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Commit")
     public void commitOperation(
         @WebParam(name = "Commit", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsat/2006/06", partName = "parameters")
         Notification parameters)
     {
         MessageContext ctx = .getMessageContext();
         final Notification commit = parameters;
         final MAP inboundMap = AddressingHelper.inboundMap(ctx);
         final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
 
         TaskManager.getManager().queueTask(new Task() {
             public void executeTask() {
                 ParticipantProcessor.getProcessor().commit(commitinboundMaparjunaContext) ;
             }
         }) ;
     }

    

Parameters:
parameters
 
     @WebMethod(operationName = "RollbackOperation", action = "http://docs.oasis-open.org/ws-tx/wsat/2006/06/Rollback")
     @Oneway
     @Action(input="http://docs.oasis-open.org/ws-tx/wsat/2006/06/Rollback")
     public void rollbackOperation(
         @WebParam(name = "Rollback", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsat/2006/06", partName = "parameters")
         Notification parameters)
     {
        final Notification rollback = parameters;
        final MAP inboundMap = AddressingHelper.inboundMap(ctx);
        final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
        TaskManager.getManager().queueTask(new Task() {
            public void executeTask() {
                ParticipantProcessor.getProcessor().rollback(rollbackinboundMaparjunaContext) ;
            }
        }) ;
    }
    @WebMethod(operationName = "SoapFault", action = "http://docs.oasis-open.org/ws-tx/wsat/2006/06/fault")
    @Oneway
    @Action(input="http://docs.oasis-open.org/ws-tx/wsat/2006/06/fault")
    public void soapFault(
            @WebParam(name = "Fault", targetNamespace = "http://schemas.xmlsoap.org/soap/envelope/", partName = "parameters")
            Fault fault)
    {
        final MAP inboundMap = AddressingHelper.inboundMap(ctx);
        final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
        final SoapFault soapFault = SoapFault11.fromFault(fault);
        TaskManager.getManager().queueTask(new Task() {
            public void executeTask() {
                ParticipantProcessor.getProcessor().soapFault(soapFaultinboundMaparjunaContext); ;
            }
        }) ;
    }
New to GrepCode? Check out our FAQ X