Package vs.common

Examples of vs.common.MethodRequest


         
         
          oos = new ObjectOutputStream(new BufferedOutputStream(socket
              .getOutputStream()));

          MethodRequest mr = (MethodRequest)ois.readObject();
          MethodResponse mresp = null;
         
          String objectId = mr.getObjectId();
          if (StringUtils.isNotEmpty(objectId)) {
           
            // do the dispatching
            Object remote = remoteObjects.get(objectId);
            if (remote != null) {
             
              String methodName = mr.getMethodName();
              if (StringUtils.isNotEmpty(methodName)) {
               
                Object[] params = mr.getParams();
                try {
                  // execute method and reply
                  Object retVal = MethodUtils.invokeMethod(
                      remote, methodName, params);
 
View Full Code Here


  public Object invoke(Object proxy, Method method, Object[] args)
    throws Throwable {
   
    // create the method request
    MethodRequest request = new MethodRequest(objectId, method.getName(), args);
    MethodResponse response = null;
   
    // obviously, this is very inefficient, but for the moment it will do
    synchronized (socket) {
View Full Code Here

TOP

Related Classes of vs.common.MethodRequest

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.