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

This code example shows how to use the following methods:
 
	private AmqpTemplate amqpTemplate; 
 
	private String routingKey = null; 
 
	private RemoteInvocationFactory remoteInvocationFactory = new DefaultRemoteInvocationFactory(); 
 
	@Override 
	public Object invoke(MethodInvocation invocation) throws Throwable { 
		RemoteInvocation remoteInvocation = getRemoteInvocationFactory().createRemoteInvocation(invocation); 
 
		Object rawResult; 
		if (getRoutingKey() == null) { 
			// Use the template's default routing key 
			rawResult = amqpTemplate.convertSendAndReceive(remoteInvocation); 
		} 
		else { 
			rawResult = amqpTemplate.convertSendAndReceive(routingKey, remoteInvocation); 
		} 
 
5
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
 
	private Object queue; 
 
	private DestinationResolver destinationResolver = new DynamicDestinationResolver(); 
 
	private RemoteInvocationFactory remoteInvocationFactory = new DefaultRemoteInvocationFactory(); 
 
	private MessageConverter messageConverter = new SimpleMessageConverter(); 
 
	private long receiveTimeout = 0; 
 
 
	/** 
	 * Set the QueueConnectionFactory to use for obtaining JMS QueueConnections. 
	 */ 
	public void setConnectionFactory(ConnectionFactory connectionFactory) { 
		this.connectionFactory = connectionFactory; 
	} 
 
	/** 
4
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
 */ 
public class JndiRmiClientInterceptor extends JndiObjectLocator implements MethodInterceptor, InitializingBean { 
 
	private Class<?> serviceInterface; 
 
	private RemoteInvocationFactory remoteInvocationFactory = new DefaultRemoteInvocationFactory(); 
 
	private boolean lookupStubOnStartup = true; 
 
	private boolean cacheStub = true; 
 
	private boolean refreshStubOnConnectFailure = false; 
 
	private boolean exposeAccessContext = false; 
 
	private Object cachedStub; 
 
	private final Object stubMonitor = new Object(); 
 
 
4
CodeRank
Experience pair programming with AI  Get Codota for Java