use of org.oasis_open.docs.ws_tx.wsat._2006._06.Notification in project narayana by jbosstm.
the class ParticipantClient method sendPrepare.
/**
* Send a prepare 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 void sendPrepare(final W3CEndpointReference endpoint, final MAP map, final InstanceIdentifier identifier) throws SoapFault, IOException {
MAPEndpoint coordinator = getCoordinator(endpoint, map);
AddressingHelper.installFromFaultTo(map, coordinator, identifier);
ParticipantPortType port = getPort(endpoint, map, prepareAction);
Notification prepare = new Notification();
port.prepareOperation(prepare);
}
use of org.oasis_open.docs.ws_tx.wsat._2006._06.Notification in project narayana by jbosstm.
the class CompletionInitiatorPortTypeImpl 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() {
CompletionInitiatorProcessor.getProcessor().handleAborted(aborted, inboundMap, arjunaContext);
}
});
}
use of org.oasis_open.docs.ws_tx.wsat._2006._06.Notification in project narayana by jbosstm.
the class ParticipantPortTypeImpl method prepareOperation.
/**
* @param 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 = webServiceCtx.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(prepare, inboundMap, arjunaContext);
}
});
}
use of org.oasis_open.docs.ws_tx.wsat._2006._06.Notification in project narayana by jbosstm.
the class ParticipantPortTypeImpl method commitOperation.
/**
* @param 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 = webServiceCtx.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(commit, inboundMap, arjunaContext);
}
});
}
use of org.oasis_open.docs.ws_tx.wsat._2006._06.Notification in project narayana by jbosstm.
the class ParticipantPortTypeImpl 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() {
ParticipantProcessor.getProcessor().rollback(rollback, inboundMap, arjunaContext);
}
});
}
Aggregations