Examples of AxisCallback


Examples of org.apache.axis2.client.async.AxisCallback

        } else if (messageCtx.getProperty(SandeshaClientConstants.SEQUENCE_KEY) == null) {
            messageID = (String) messageCtx.getProperty(SynapseConstants.RELATES_TO_FOR_POX);
        }

        if (messageID != null) {
            AxisCallback callback = callbackStore.remove(messageID);
            if (log.isDebugEnabled()) {
                log.debug("Callback removed for request message id : " + messageID +
                        ". Pending callbacks count : " + callbackStore.size());
            }
View Full Code Here

Examples of org.apache.axis2.client.async.AxisCallback

        } else if (messageCtx.getProperty(SandeshaClientConstants.SEQUENCE_KEY) == null) {
            messageID = (String) messageCtx.getProperty(SynapseConstants.RELATES_TO_FOR_POX);
        }

        if (messageID != null) {
            AxisCallback callback = (AxisCallback) callbackStore.remove(messageID);

            RelatesTo[] relates = messageCtx.getRelationships();
            if (relates != null && relates.length > 1) {
                // we set a relates to to the response message so that if WSA is not used, we
                // could still link back to the original message. But if WSA was used, this
View Full Code Here

Examples of org.apache.axis2.client.async.AxisCallback

                        MessageReceiver msgReceiver = applicationAxisOperation.getMessageReceiver();
                        if ((msgReceiver != null) && (msgReceiver instanceof CallbackReceiver)) {
                            Object callback = ((CallbackReceiver) msgReceiver)
                                    .lookupCallback(bean.getApplicationMessageMessageId());
                            if (callback != null) {
                                AxisCallback axisCallback = ((AxisCallback) callback);
                                axisCallback.onError(new Exception(message));
                                axisCallback.onComplete();
                            }
                        }
                    }
                }
                if (transaction != null && transaction.isActive()) transaction.commit();
View Full Code Here

Examples of org.apache.axis2.client.async.AxisCallback

            new QName(rmNamespaceValue,
                Sandesha2Constants.WSRM_COMMON.TERMINATE_SEQUENCE));

        // To inform the Sandesha2 out handler. The response to this call needs
        // be routed to the Sandesha Message receiver
        AxisCallback callback = new AxisCallback() {

          public void onMessage(MessageContext msg) {
            try {
              RMMessageReceiver rm = new RMMessageReceiver();
              rm.receive(msg);
View Full Code Here

Examples of org.apache.axis2.client.async.AxisCallback

    serviceClient.addHeader(ackRequestedHeaderBlock);

    try {
      //to inform the sandesha2 out handler
      serviceClient.sendReceiveNonBlocking (null,new AxisCallback () {

        public void onComplete() {}
        public void onError(Exception e) {}
        public void onFault(MessageContext msgContext) {}
        public void onMessage(MessageContext msgContext) {}
View Full Code Here

Examples of org.apache.axis2.client.async.AxisCallback

        } else if (messageCtx.getProperty(SandeshaClientConstants.SEQUENCE_KEY) == null) {
            messageID = (String) messageCtx.getProperty(SynapseConstants.RELATES_TO_FOR_POX);
        }

        if (messageID != null) {
            AxisCallback callback = callbackStore.remove(messageID);
            if (log.isDebugEnabled()) {
                log.debug("Callback removed for request message id : " + messageID +
                        ". Pending callbacks count : " + callbackStore.size());
            }
View Full Code Here

Examples of org.apache.axis2.client.async.AxisCallback

            new QName(rmNamespaceValue,
                Sandesha2Constants.WSRM_COMMON.TERMINATE_SEQUENCE));

        // To inform the Sandesha2 out handler. The response to this call needs
        // be routed to the Sandesha Message receiver
        AxisCallback callback = new AxisCallback() {

          public void onMessage(MessageContext msg) {
            try {
              RMMessageReceiver rm = new RMMessageReceiver();
              rm.receive(msg);
View Full Code Here

Examples of org.apache.axis2.client.async.AxisCallback

        } else if (messageCtx.getProperty(SandeshaClientConstants.SEQUENCE_KEY) == null) {
            messageID = (String) messageCtx.getProperty(SynapseConstants.RELATES_TO_FOR_POX);
        }

        if (messageID != null) {
            AxisCallback callback = callbackStore.remove(messageID);
            if (log.isDebugEnabled()) {
                log.debug("Callback removed for request message id : " + messageID +
                        ". Pending callbacks count : " + callbackStore.size());
            }
View Full Code Here

Examples of org.apache.axis2.client.async.AxisCallback

        // payload = null;
        // }

        try {
            if (wsRequest.async) { // asynchronous call to send()
                AxisCallback callback =
                        new WSRequestCallBack(Context.getCurrentContext(), wsRequest);
                setRampartConfigs(wsRequest, operationName);
                if (wsRequest.wsdlMode) {
                    //                    setSSLProperties(wsRequest);
                    if (IN_ONLY.equalsIgnoreCase(wsRequest.mep)) {
View Full Code Here

Examples of org.apache.axis2.client.async.AxisCallback

        if (callbackObj == null) {
            throw new AxisFault("The Callback for MessageID " + messageID + " was not found");
        }

        if (callbackObj instanceof AxisCallback) {
            AxisCallback axisCallback = (AxisCallback)callbackObj;
            if (msgContext.isFault()) {
                axisCallback.onFault(msgContext);
            } else {
                axisCallback.onMessage(msgContext);
            }
            // Either way we're done.
            axisCallback.onComplete();
            return;
        }

        // THIS NEXT PART WILL EVENTUALLY GO AWAY WHEN Callback DOES
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.