Example usage for org.springframework.jms.remoting JmsInvokerProxyFactoryBean setMessageConverter

List of usage examples for org.springframework.jms.remoting JmsInvokerProxyFactoryBean setMessageConverter

Introduction

In this page you can find the example usage for org.springframework.jms.remoting JmsInvokerProxyFactoryBean setMessageConverter.

Prototype

public void setMessageConverter(@Nullable MessageConverter messageConverter) 

Source Link

Document

Specify the MessageConverter to use for turning org.springframework.remoting.support.RemoteInvocation objects into request messages, as well as response messages into org.springframework.remoting.support.RemoteInvocationResult objects.

Usage

From source file:com.jim.im.config.GenericMQConfig.java

/**
 * RPC??/*from w  w  w .j a v  a2  s .c  o m*/
 *
 * @param queueName ??
 * @param serviceInterfaceClazz ???
 * @return
 */
protected JmsInvokerProxyFactoryBean buildRpcServiceProxyFactoryBean(String queueName,
        Class<?> serviceInterfaceClazz) {
    JmsInvokerProxyFactoryBean proxy = new JmsInvokerProxyFactoryBean();
    proxy.setConnectionFactory(jmsConnectionFactory());
    proxy.setMessageConverter(messageConverter());
    proxy.setQueueName(queueName);
    proxy.setServiceInterface(serviceInterfaceClazz);
    return proxy;
}