package saker.rmi.util
public class RMIUtils
API utilities for the RMI runtime.
public static Object | invokeRedirectRemoteMethod( Calls a remote method on an RMI proxy object with the specified arguments and without any redirection. |
public static Object invokeRedirectRemoteMethod(Method m, Object remoteobject, Object... args) throws InvocationTargetException, RMIRuntimeException
Calls a remote method on an RMI proxy object with the specified arguments and without any redirection.
This method only succeeds if the remote call succeeds. If the RMI configuration forbids the call of this method
then the request will fail.
Default implementations are not called, call results are not cached, redirections are not applied, and exceptions
are not rethrown as a different type.
If the specified method is not subject of redirection, then this method will throw an RMICallFailedException.
mThe method to call.
remoteobjectThe remote object to execute the call on.
argsThe arguments for the method call.
The result of the invocation.
InvocationTargetExceptionIf the method implementation throws an exception.
RMIRuntimeExceptionIn case of RMI error.