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

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

Introduction

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

Prototype

public static Exception convertRmiAccessException(Method method, RemoteException ex, boolean isConnectFailure,
        String serviceName) 

Source Link

Document

Convert the given RemoteException that happened during remote access to Spring's RemoteAccessException if the method signature does not support RemoteException.

Usage

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

/**
 * {@inheritDoc}//from w  ww.  ja  v a  2  s  .  c om
 */
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());
    }
}