public Object callRemoteMethod(Address dest, MethodCall method_call, int mode, long timeout) throws TimeoutException, SuspectedException { byte[]   buf=null; Message  msg=null; Object   retval=null;  if(log.isTraceEnabled()) log.trace("dest=" + dest + ", method_call=" + method_call + ", mode=" + mode + ", timeout=" + timeout);  try { buf=marshaller != null? marshaller.objectToByteBuffer(method_call) : Util.objectToByteBuffer(method_call); } catch(Exception e) {     throw new RuntimeException("failure to marshal argument(s)", e); }  msg=new Message(dest, null, buf); retval=super.sendMessage(msg, mode, timeout); if(log.isTraceEnabled()) log.trace("retval: " + retval); return retval;
public Object callRemoteMethod(Address dest, String method_name, Object[] args, Class[] types, int mode, long timeout) throws Throwable { MethodCall method_call=new MethodCall(method_name, args, types); return callRemoteMethod(dest, method_call, mode, timeout);
    public Object callRemoteMethod(Address dest, MethodCall method_call, int mode, long timeout)            throws TimeoutException, SuspectedException {        byte[]   buf=null;        Message  msg=null;        Object   retval=null;        if(log.isTraceEnabled())            log.trace("dest=" + dest + ", method_call=" + method_call + ", mode=" + mode + ", timeout=" + timeout);        try {            buf=marshaller != null? marshaller.objectToByteBuffer(method_call) : Util.objectToByteBuffer(method_call);        }        catch(Exception e) {            // if(log.isErrorEnabled()) log.error("exception", e);            // we will change this in 2.4 to add the exception to the signature            // (see http://jira.jboss.com/jira/browse/JGRP-193). The reason for a RTE is that we cannot change the            // signature in 2.3, otherwise 2.3 would be *not* API compatible to prev releases            throw new RuntimeException("failure to marshal argument(s)", e);        }        msg=new Message(dest, null, buf);        retval=super.sendMessage(msg, mode, timeout);        if(log.isTraceEnabled()) log.trace("retval: " + retval);        return retval;    }