Spring Framework RemoteInvocationFactory - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework RemoteInvocationFactory class.

This code example shows how to use the following methods:createRemoteInvocation
	 * @param methodInvocation the current AOP method invocation 
	 * @return the RemoteInvocation object 
	 * @see RemoteInvocationFactory#createRemoteInvocation 
	 */ 
	protected RemoteInvocation createRemoteInvocation(MethodInvocation methodInvocation) { 
		return getRemoteInvocationFactory().createRemoteInvocation(methodInvocation); 
	} 
 
	/** 
	 * Convert the given RMI RemoteException that happened during remote access 
	 * to Spring's RemoteAccessException if the method signature does not declare 
	 * RemoteException. Else, return the original RemoteException. 
	 * @param method the invoked method 
	 * @param ex the RemoteException that happened 
	 * @return the exception to be thrown to the caller 
	 */ 
	private Exception convertRmiAccessException(RemoteException ex, Method method) { 
		return RmiClientInterceptorUtils.convertRmiAccessException(method, ex, isConnectFailure(ex), getJndiName()); 
	} 
 
4
CodeRank
See Code Examples for Spring Framework RemoteInvocationFactory Methods: