Examples of MsgBody


Examples of org.apache.geronimo.datastore.impl.remote.messaging.MsgBody

        return aRequest.execute();
    }
   
    protected void handleRequest(Msg aMsg) {
        MsgHeader header = aMsg.getHeader();
        MsgBody body = aMsg.getBody();
       
        Object id = header.getHeader(MsgHeaderConstants.CORRELATION_ID);
        Object srcNode = header.getHeader(MsgHeaderConstants.SRC_NODE);

        CommandRequest command = (CommandRequest) body.getContent();

        command.setTarget(this);
       
        CommandResult result = command.execute();
        Msg msg = new Msg();
        body = msg.getBody();
        body.setContent(result);
        MsgOutInterceptor reqOut =
            new HeaderOutInterceptor(
                MsgHeaderConstants.CORRELATION_ID,
                id,
                new HeaderOutInterceptor(
View Full Code Here

Examples of org.apache.geronimo.datastore.impl.remote.messaging.MsgBody

            resultOut = null;
        }
    }

    protected void handleRequest(Msg aMsg) {
        MsgBody body = aMsg.getBody();
        MsgHeader header = aMsg.getHeader();
        Object sourceNode = header.getHeader(MsgHeaderConstants.SRC_NODE);
        Object id = header.getHeader(MsgHeaderConstants.CORRELATION_ID);
        CommandRequest command;
        String gateway;
        command = (CommandRequest) body.getContent();
        command.setTarget(this);
        CommandResult result = command.execute();
        Msg msg = new Msg();
        body = msg.getBody();
        body.setContent(result);
        MsgOutInterceptor reqOut =
            new HeaderOutInterceptor(
                MsgHeaderConstants.CORRELATION_ID,
                id,
                new HeaderOutInterceptor(
View Full Code Here

Examples of org.apache.geronimo.messaging.MsgBody

    }
   
    private class JoinExecutor implements MsgOutInterceptor {

        public void push(Msg aMsg) {
            MsgBody body = aMsg.getBody();
            remoteNodeInfo = (NodeInfo) body.getContent();
           
            if ( null != manager.findRemoteNode(remoteNodeInfo) ) {
                log.error(remoteNodeInfo +
                    " tried to join twice this node; rejecting request.");
                Msg msg = aMsg.reply();
View Full Code Here

Examples of org.apache.geronimo.messaging.MsgBody

    }
   
    private class JoinExecutor implements MsgOutInterceptor {

        public void push(Msg aMsg) {
            MsgBody body = aMsg.getBody();
            remoteNodeInfo = (NodeInfo) body.getContent();
           
            if ( null != manager.findRemoteNode(remoteNodeInfo) ) {
                log.error(remoteNodeInfo +
                    " tried to join twice this node; rejecting request.");
                Msg msg = aMsg.reply();
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.