Example usage for org.springframework.remoting.rmi RmiClientInterceptorUtils isConnectFailure

List of usage examples for org.springframework.remoting.rmi RmiClientInterceptorUtils isConnectFailure

Introduction

In this page you can find the example usage for org.springframework.remoting.rmi RmiClientInterceptorUtils isConnectFailure.

Prototype

public static boolean isConnectFailure(RemoteException ex) 

Source Link

Document

Determine whether the given RMI exception indicates a connect failure.

Usage

From source file:org.jdal.remoting.rmi.RmiServiceInterceptor.java

/**
 * {@inheritDoc}/*w  w w.  j a  v  a2  s  .c  o  m*/
 */
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());
    }
}