Search in sources :

Example 1 with JmsInvokerProxyFactoryBean

use of org.springframework.jms.remoting.JmsInvokerProxyFactoryBean in project tutorials by eugenp.

the class JmsClient method invoker.

@Bean
FactoryBean invoker(ConnectionFactory factory, Queue queue) {
    JmsInvokerProxyFactoryBean factoryBean = new JmsInvokerProxyFactoryBean();
    factoryBean.setConnectionFactory(factory);
    factoryBean.setServiceInterface(CabBookingService.class);
    factoryBean.setQueue(queue);
    return factoryBean;
}
Also used : JmsInvokerProxyFactoryBean(org.springframework.jms.remoting.JmsInvokerProxyFactoryBean) FactoryBean(org.springframework.beans.factory.FactoryBean) Bean(org.springframework.context.annotation.Bean) JmsInvokerProxyFactoryBean(org.springframework.jms.remoting.JmsInvokerProxyFactoryBean)

Aggregations

FactoryBean (org.springframework.beans.factory.FactoryBean)1 Bean (org.springframework.context.annotation.Bean)1 JmsInvokerProxyFactoryBean (org.springframework.jms.remoting.JmsInvokerProxyFactoryBean)1