use of org.oasis_open.docs.ws_tx.wsat._2006._06.Notification in project narayana by jbosstm.
the class CompletionCoordinatorRPCClient method sendRollback.
/**
* Send a rollback request.
* @param map addressing context initialised with to and message ID.
* @param identifier The identifier of the initiator.
* @throws com.arjuna.webservices.SoapFault For any errors.
* @throws java.io.IOException for any transport errors.
*/
public boolean sendRollback(final W3CEndpointReference endpoint, final MAP map) throws SoapFault, IOException {
CompletionCoordinatorRPCPortType port = getPort(endpoint, map, rollbackAction);
Notification rollback = new Notification();
try {
return port.rollbackOperation(rollback);
} catch (SOAPFaultException sfe) {
throw SoapFault11.create(sfe);
}
}
use of org.oasis_open.docs.ws_tx.wsat._2006._06.Notification in project narayana by jbosstm.
the class CoordinatorClient method sendReadOnly.
/**
* Send a read only request.
* @param map addressing context initialised with to and message ID.
* @param identifier The identifier of the initiator.
* @throws com.arjuna.webservices.SoapFault For any SOAP errors.
* @throws java.io.IOException for any transport errors.
*/
public void sendReadOnly(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint participant = getParticipant(endpoint, map);
AddressingHelper.installFaultTo(map, participant, identifier);
CoordinatorPortType port = getPort(endpoint, map, readOnlyAction);
Notification readOnly = new Notification();
port.readOnlyOperation(readOnly);
}
use of org.oasis_open.docs.ws_tx.wsat._2006._06.Notification in project narayana by jbosstm.
the class CompletionCoordinatorPortTypeImpl method rollbackOperation.
/**
* @param 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) {
MessageContext ctx = webServiceCtx.getMessageContext();
final Notification rollback = parameters;
final MAP inboundMap = AddressingHelper.inboundMap(ctx);
final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
TaskManager.getManager().queueTask(new Task() {
public void executeTask() {
CompletionCoordinatorProcessor.getProcessor().rollback(rollback, inboundMap, arjunaContext);
}
});
}
use of org.oasis_open.docs.ws_tx.wsat._2006._06.Notification in project narayana by jbosstm.
the class CompletionInitiatorPortTypeImpl method committedOperation.
/**
* @param parameters
*/
@WebMethod(operationName = "CommittedOperation", action = "http://docs.oasis-open.org/ws-tx/wsat/2006/06/Committed")
@Oneway
@Action(input = "http://docs.oasis-open.org/ws-tx/wsat/2006/06/Committed")
public void committedOperation(@WebParam(name = "Committed", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsat/2006/06", partName = "parameters") Notification parameters) {
MessageContext ctx = webServiceCtx.getMessageContext();
final Notification committed = parameters;
final MAP inboundMap = AddressingHelper.inboundMap(ctx);
final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
TaskManager.getManager().queueTask(new Task() {
public void executeTask() {
CompletionInitiatorProcessor.getProcessor().handleCommitted(committed, inboundMap, arjunaContext);
}
});
}
use of org.oasis_open.docs.ws_tx.wsat._2006._06.Notification in project narayana by jbosstm.
the class CompletionCoordinatorRPCPortTypeImpl method commitOperation.
/**
* @param parameters
*/
@WebMethod(operationName = "CommitOperation", action = "http://docs.oasis-open.org/ws-tx/wsat/2006/06/Commit")
@WebResult(name = "Result", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsat/2006/06", partName = "result")
public boolean commitOperation(@WebParam(name = "Commit", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsat/2006/06", partName = "parameters") Notification parameters) {
MessageContext ctx = webServiceCtx.getMessageContext();
final Notification commit = parameters;
final MAP inboundMap = AddressingHelper.inboundMap(ctx);
final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
return CompletionCoordinatorRPCProcessor.getProcessor().commit(commit, inboundMap, arjunaContext);
}
Aggregations