List of usage examples for org.springframework.jms.remoting JmsInvokerProxyFactoryBean setMessageConverter
public void setMessageConverter(@Nullable MessageConverter messageConverter)
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; }