Search in sources :

Example 61 with Task

use of com.arjuna.services.framework.task.Task in project narayana by jbosstm.

the class BusinessAgreementWithParticipantCompletionCoordinatorPortTypeImpl method statusOperation.

/**
 * @param parameters
 */
@WebMethod(operationName = "StatusOperation", action = "http://docs.oasis-open.org/ws-tx/wsba/2006/06/Status")
@Oneway
@Action(input = "http://docs.oasis-open.org/ws-tx/wsba/2006/06/Status")
public void statusOperation(@WebParam(name = "Status", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsba/2006/06", partName = "parameters") StatusType parameters) {
    if (WSTLogger.logger.isTraceEnabled()) {
        WSTLogger.logger.trace(getClass().getSimpleName() + ".statusOperation");
    }
    MessageContext ctx = webServiceCtx.getMessageContext();
    final StatusType status = parameters;
    final MAP inboundMap = AddressingHelper.inboundMap(ctx);
    final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
    TaskManager.getManager().queueTask(new Task() {

        public void executeTask() {
            ParticipantCompletionCoordinatorProcessor.getProcessor().status(status, inboundMap, arjunaContext);
        }
    });
}
Also used : Task(com.arjuna.services.framework.task.Task) StatusType(org.oasis_open.docs.ws_tx.wsba._2006._06.StatusType) MessageContext(javax.xml.ws.handler.MessageContext) ArjunaContext(com.arjuna.webservices11.wsarj.ArjunaContext) MAP(org.jboss.ws.api.addressing.MAP) Action(javax.xml.ws.Action)

Example 62 with Task

use of com.arjuna.services.framework.task.Task in project narayana by jbosstm.

the class BusinessAgreementWithParticipantCompletionCoordinatorPortTypeImpl method canceledOperation.

/**
 * @param parameters
 */
@WebMethod(operationName = "CanceledOperation", action = "http://docs.oasis-open.org/ws-tx/wsba/2006/06/Canceled")
@Oneway
@Action(input = "http://docs.oasis-open.org/ws-tx/wsba/2006/06/Canceled")
public void canceledOperation(@WebParam(name = "Canceled", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsba/2006/06", partName = "parameters") NotificationType parameters) {
    if (WSTLogger.logger.isTraceEnabled()) {
        WSTLogger.logger.trace(getClass().getSimpleName() + ".canceledOperation");
    }
    MessageContext ctx = webServiceCtx.getMessageContext();
    final NotificationType cancelled = parameters;
    final MAP inboundMap = AddressingHelper.inboundMap(ctx);
    final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);
    TaskManager.getManager().queueTask(new Task() {

        public void executeTask() {
            ParticipantCompletionCoordinatorProcessor.getProcessor().cancelled(cancelled, inboundMap, arjunaContext);
        }
    });
}
Also used : Task(com.arjuna.services.framework.task.Task) NotificationType(org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType) MessageContext(javax.xml.ws.handler.MessageContext) ArjunaContext(com.arjuna.webservices11.wsarj.ArjunaContext) MAP(org.jboss.ws.api.addressing.MAP) Action(javax.xml.ws.Action)

Aggregations

Task (com.arjuna.services.framework.task.Task)62 ArjunaContext (com.arjuna.webservices11.wsarj.ArjunaContext)62 MessageContext (javax.xml.ws.handler.MessageContext)62 MAP (org.jboss.ws.api.addressing.MAP)62 Action (javax.xml.ws.Action)53 NotificationType (org.oasis_open.docs.ws_tx.wsba._2006._06.NotificationType)29 Notification (org.oasis_open.docs.ws_tx.wsat._2006._06.Notification)11 SoapFault (com.arjuna.webservices.SoapFault)9 NotificationType (com.arjuna.schemas.ws._2005._10.wsarjtx.NotificationType)7 StatusType (org.oasis_open.docs.ws_tx.wsba._2006._06.StatusType)4 ExceptionType (org.oasis_open.docs.ws_tx.wsba._2006._06.ExceptionType)2 HttpServletRequest (javax.servlet.http.HttpServletRequest)1