Package org.apache.geronimo.datastore.impl.remote.messaging

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


        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(
View Full Code Here


        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(
View Full Code Here

     * @param aStub GFileStub sending the request.
     * @param aRequest Request.
     * @return Request result.
     */
    protected Object sendGFileRequest(GFileStub aStub, CommandRequest aRequest) {
        CommandResult result = (CommandResult)
            sender.sendSyncRequest(new CommandRequest("executeOnGFile",
                new Object[] {aStub.getID(), aRequest}), out, node);
        if ( result.isSuccess() ) {
            return result.getResult();
        }
        throw new RuntimeException(result.getException());
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.datastore.impl.remote.messaging.CommandResult

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.