Spring Framework RemoteInvocationFailureException - 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 RemoteInvocationFailureException class.

This code example shows how to use the following methods:
			if (result.hasInvocationTargetException()) { 
				throw ex; 
			} 
			else { 
				throw new RemoteInvocationFailureException("Invocation of method [" + methodInvocation.getMethod() + 
						"] failed in HTTP invoker remote service at [" + getServiceUrl() + "]", ex); 
			} 
		} 
	} 
 
	/** 
	 * Execute the given remote invocation via the HttpInvokerRequestExecutor. 
	 * <p>This implementation delegates to {@link #executeRequest(RemoteInvocation)}. 
	 * Can be overridden to react to the specific original MethodInvocation. 
	 * @param invocation the RemoteInvocation to execute 
	 * @param originalInvocation the original MethodInvocation (can e.g. be cast 
	 * to the ProxyMethodInvocation interface for accessing user attributes) 
	 * @return the RemoteInvocationResult object 
	 * @throws Exception in case of errors 
	 */ 
5
CodeRank
This code example shows how to use the following methods:
		catch (Throwable ex) { 
			if (result.hasInvocationTargetException()) { 
				throw ex; 
			} 
			else { 
				throw new RemoteInvocationFailureException("Invocation of method [" + methodInvocation.getMethod() + 
						"] failed in JMS invoker remote service at queue [" + this.queue + "]", ex); 
			} 
		} 
	} 
 
	/** 
	 * Create a new RemoteInvocation object for the given AOP method invocation. 
	 * The default implementation delegates to the RemoteInvocationFactory. 
	 * <p>Can be overridden in subclasses to provide custom RemoteInvocation 
	 * subclasses, containing additional invocation parameters like user credentials. 
	 * Note that it is preferable to use a custom RemoteInvocationFactory which 
	 * is a reusable strategy. 
	 * @param methodInvocation the current AOP method invocation 
	 * @return the RemoteInvocation object 
4
CodeRank