org.springframework.remoting.rmi.RmiClientInterceptorUtils Java Examples

The following examples show how to use org.springframework.remoting.rmi.RmiClientInterceptorUtils. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RmiServiceInterceptor.java    From jdal with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Object invoke(MethodInvocation invocation) throws Throwable {
	try {
		return invocationHandler.invoke(createRemoteInvocation(invocation));
	}
	catch (RemoteException ex) {
			throw RmiClientInterceptorUtils.convertRmiAccessException(
			    invocation.getMethod(), ex, RmiClientInterceptorUtils.isConnectFailure(ex), 
			    extractServiceUrl());
		}
}
 
Example #2
Source File: AbstractRemoteSlsbInvokerInterceptor.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Determine whether the given RMI exception indicates a connect failure.
 * <p>The default implementation delegates to RmiClientInterceptorUtils.
 * @param ex the RMI exception to check
 * @return whether the exception should be treated as connect failure
 * @see org.springframework.remoting.rmi.RmiClientInterceptorUtils#isConnectFailure
 */
protected boolean isConnectFailure(RemoteException ex) {
	return RmiClientInterceptorUtils.isConnectFailure(ex);
}
 
Example #3
Source File: AbstractRemoteSlsbInvokerInterceptor.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Determine whether the given RMI exception indicates a connect failure.
 * <p>The default implementation delegates to RmiClientInterceptorUtils.
 * @param ex the RMI exception to check
 * @return whether the exception should be treated as connect failure
 * @see org.springframework.remoting.rmi.RmiClientInterceptorUtils#isConnectFailure
 */
protected boolean isConnectFailure(RemoteException ex) {
	return RmiClientInterceptorUtils.isConnectFailure(ex);
}
 
Example #4
Source File: AbstractRemoteSlsbInvokerInterceptor.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Determine whether the given RMI exception indicates a connect failure.
 * <p>The default implementation delegates to RmiClientInterceptorUtils.
 * @param ex the RMI exception to check
 * @return whether the exception should be treated as connect failure
 * @see org.springframework.remoting.rmi.RmiClientInterceptorUtils#isConnectFailure
 */
protected boolean isConnectFailure(RemoteException ex) {
	return RmiClientInterceptorUtils.isConnectFailure(ex);
}
 
Example #5
Source File: AbstractRemoteSlsbInvokerInterceptor.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Determine whether the given RMI exception indicates a connect failure.
 * <p>The default implementation delegates to RmiClientInterceptorUtils.
 * @param ex the RMI exception to check
 * @return whether the exception should be treated as connect failure
 * @see org.springframework.remoting.rmi.RmiClientInterceptorUtils#isConnectFailure
 */
protected boolean isConnectFailure(RemoteException ex) {
	return RmiClientInterceptorUtils.isConnectFailure(ex);
}