spring-framework / org.springframework.remoting.rmi / RmiClientInterceptorUtils / invokeRemoteMethod

invokeRemoteMethod

@Nullable open static fun invokeRemoteMethod(invocation: MethodInvocation, stub: Any): Any

Perform a raw method invocation on the given RMI stub, letting reflection exceptions through as-is.

Parameters

invocation - the AOP MethodInvocation

stub - the RMI stub

Exceptions

InvocationTargetException - if thrown by reflection

Return
the invocation result, if any