Package org.apache.sandesha.storage

Examples of org.apache.sandesha.storage.CallbackData


        callBack = null;
    }

    private void informOutgoingMessage(RMMessageContext rmMsgContext) {

        CallbackData cbData = new CallbackData();

        //  setting callback data;
        if (null != rmMsgContext) {
            cbData.setSequenceId(rmMsgContext.getSequenceID());
            cbData.setMessageId(rmMsgContext.getMessageID());
            cbData.setMessageType(rmMsgContext.getMessageType());
        }

        if (null != callBack)
            callBack.onOutgoingMessage(cbData);
    }
View Full Code Here


            }

            IRMMessageProcessor rmMessageProcessor = RMMessageProcessorIdentifier.getMessageProcessor(rmMessageContext, storageManager);

            if (callback != null) {
                CallbackData cbData = getCallbackData(rmMessageContext);
                callback.onIncomingMessage(cbData);
            }

            try {
                if (!rmMessageProcessor.processMessage(rmMessageContext)) {
View Full Code Here

    }

    //for callback
   
    private CallbackData getCallbackData(RMMessageContext rmMsgContext) {
        CallbackData cbData = new CallbackData();

        //  setting callback data;
        cbData.setSequenceId(rmMsgContext.getSequenceID());
        cbData.setMessageId(rmMsgContext.getMessageID());
        cbData.setMessageType(rmMsgContext.getMessageType());

        Action action = rmMsgContext.getAddressingHeaders().getAction();
        if (action != null) {
            cbData.setAction(action.toString());
        }

        return cbData;
    }
View Full Code Here

            IRMMessageProcessor messagePrcessor = RMMessageProcessorIdentifier.getMessageProcessor(rmMessageContext, storageManager);
            messagePrcessor.processMessage(rmMessageContext);
        }

        if (getCallback() != null) {
            CallbackData data = new CallbackData();
            data.setMessageId(rmMessageContext.getMessageID());
            data.setMessageType(rmMessageContext.getMessageType());
            data.setSequenceId(rmMessageContext.getSequenceID());
            callback.onIncomingMessage(data);
        }

    }
View Full Code Here

TOP

Related Classes of org.apache.sandesha.storage.CallbackData

Copyright © 2018 www.massapicom. 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.