java.lang.Object | |
↳ | org.springframework.remoting.rmi.RmiClientInterceptorUtils |
Factored-out methods for performing invocations within an RMI client. Can handle both RMI and non-RMI service interfaces working on an RMI stub.
Note: This is an SPI class, not intended to be used by applications.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Wrap the given arbitrary exception that happened during remote access
in either a RemoteException or a Spring RemoteAccessException (if the
method signature does not support RemoteException).
| |||||||||||
Convert the given RemoteException that happened during remote access
to Spring's RemoteAccessException if the method signature does not
support RemoteException.
| |||||||||||
Convert the given RemoteException that happened during remote access
to Spring's RemoteAccessException if the method signature does not
support RemoteException.
| |||||||||||
This method is deprecated.
as of Spring 2.5, in favor of
invokeRemoteMethod(MethodInvocation, Object)
| |||||||||||
This method is deprecated.
as of Spring 2.5, in favor of
invokeRemoteMethod(MethodInvocation, Object)
| |||||||||||
Perform a raw method invocation on the given RMI stub,
letting reflection exceptions through as-is.
| |||||||||||
Determine whether the given RMI exception indicates a connect failure.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Wrap the given arbitrary exception that happened during remote access in either a RemoteException or a Spring RemoteAccessException (if the method signature does not support RemoteException).
Only call this for remote access exceptions, not for exceptions thrown by the target service itself!
method | the invoked method |
---|---|
ex | the exception that happened, to be used as cause for the RemoteAccessException or RemoteException |
message | the message for the RemoteAccessException respectively RemoteException |
Convert the given RemoteException that happened during remote access to Spring's RemoteAccessException if the method signature does not support RemoteException. Else, return the original RemoteException.
method | the invoked method |
---|---|
ex | the RemoteException that happened |
isConnectFailure | whether the given exception should be considered a connect failure |
serviceName | the name of the service (for debugging purposes) |
Convert the given RemoteException that happened during remote access to Spring's RemoteAccessException if the method signature does not support RemoteException. Else, return the original RemoteException.
method | the invoked method |
---|---|
ex | the RemoteException that happened |
serviceName | the name of the service (for debugging purposes) |
This method is deprecated.
as of Spring 2.5, in favor of invokeRemoteMethod(MethodInvocation, Object)
Perform a raw method invocation on the given RMI stub, letting reflection exceptions through as-is.
InvocationTargetException |
---|
This method is deprecated.
as of Spring 2.5, in favor of invokeRemoteMethod(MethodInvocation, Object)
Apply the given method invocation to the given RMI stub.
Delegates to the corresponding method if the RMI stub does not directly
implement the invoked method. This typically happens when a non-RMI service
interface is used for an RMI service. The methods of such a service interface
have to match the RMI stub methods, but they typically don't declare
java.rmi.RemoteException
: A RemoteException thrown by the RMI stub
will be automatically converted to Spring's RemoteAccessException.
Throwable |
---|
Perform a raw method invocation on the given RMI stub, letting reflection exceptions through as-is.
invocation | the AOP MethodInvocation |
---|---|
stub | the RMI stub |
InvocationTargetException | if thrown by reflection |
---|
Determine whether the given RMI exception indicates a connect failure.
Treats RMI's ConnectException, ConnectIOException, UnknownHostException,
NoSuchObjectException and StubNotFoundException as connect failure,
as well as Oracle's OC4J com.evermind.server.rmi.RMIConnectionException
(which doesn't derive from from any well-known RMI connect exception).
ex | the RMI exception to check |
---|