use of com.icodici.universa.node2.Notification in project narayana by jbosstm.
the class CompletionCoordinatorRPCPortTypeImpl method rollbackOperation.
/**
* @param parameters
*/
@WebMethod(operationName = "RollbackOperation", action = "http://docs.oasis-open.org/ws-tx/wsat/2006/06/Rollback")
@WebResult(name = "Result", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsat/2006/06", partName = "result")
public boolean 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);
return CompletionCoordinatorRPCProcessor.getProcessor().rollback(rollback, inboundMap, arjunaContext);
}
use of com.icodici.universa.node2.Notification in project narayana by jbosstm.
the class CoordinatorPortTypeImpl method abortedOperation.
/**
* @param parameters
*/
@WebMethod(operationName = "AbortedOperation", action = "http://docs.oasis-open.org/ws-tx/wsat/2006/06/Aborted")
@Oneway
@Action(input = "http://docs.oasis-open.org/ws-tx/wsat/2006/06/Aborted")
public void abortedOperation(@WebParam(name = "Aborted", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsat/2006/06", partName = "parameters") Notification parameters) {
MessageContext ctx = webServiceCtx.getMessageContext();
final Notification aborted = parameters;
final MAP inboundMap = AddressingHelper.inboundMap(ctx);
final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
TaskManager.getManager().queueTask(new Task() {
public void executeTask() {
CoordinatorProcessor.getProcessor().aborted(aborted, inboundMap, arjunaContext);
}
});
}
Aggregations