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

This code example shows how to use the following methods:getService, invokeAndCreateResult
			send(new RuntimeException("The message does not contain a RemoteInvocation payload"), replyToAddress);
			return; 
		} 
		RemoteInvocation invocation = (RemoteInvocation) invocationRaw;
 
		RemoteInvocationResult remoteInvocationResult = invokeAndCreateResult(invocation, getService());
		send(remoteInvocationResult, replyToAddress);
	} 
 
	private void send(Object object, Address replyToAddress) {
		Message message = messageConverter.toMessage(object, new MessageProperties());
 
		getAmqpTemplate().send(replyToAddress.getExchangeName(), replyToAddress.getRoutingKey(), message);
	} 
 
	public AmqpTemplate getAmqpTemplate() { 
		return amqpTemplate;
	} 
 
	/** 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 * @author James Strachan 
 * @since 2.0 
 * @see JmsInvokerClientInterceptor 
 * @see JmsInvokerProxyFactoryBean 
 */ 
public class JmsInvokerServiceExporter extends RemoteInvocationBasedExporter
		implements SessionAwareMessageListener<Message>, InitializingBean {
 
	private MessageConverter messageConverter = new SimpleMessageConverter();
 
	private boolean ignoreInvalidRequests = true;
 
	private Object proxy;
 
 
	/** 
	 * Specify the MessageConverter to use for turning request messages into 
	 * {@link org.springframework.remoting.support.RemoteInvocation} objects, 
	 * as well as {@link org.springframework.remoting.support.RemoteInvocationResult} 
	 * objects into response messages. 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getService, getServiceInterface
    } 
 
    @Override 
    public void afterPropertiesSet() throws Exception {
 
        Class<?> serviceInterface = getServiceInterface();
 
        Object service = getService();
 
        registrar.setSerializeJavaBeanProperties(this.serializeJavaBeanProperties);
        if (exportServiceParameters) {
            registrar.discoverClasses(service.getClass());
        } 
        registrar.registerClasses(this.classes);
        registrar.afterPropertiesSet();
 
 
        Assert.notNull(service, "the service target can NOT be null!");
 
        if (eventLoop == null) {
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
    private Class serviceInterface;
    private Object serviceBean;
    private boolean registerTraceInterceptor = false;
    private RemoteInvocationExecutor remoteInvocationExecutor;
 
    private class Delegate extends RemoteInvocationBasedExporter implements InitializingBean
    { 
        private Object proxy;
 
        public void afterPropertiesSet() 
        { 
            this.proxy = getProxyForService();
        } 
 
        public Object execute(RemoteInvocation invocation)
        { 
            try 
            { 
                Object value = invoke(invocation, proxy);
                return value;
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java