Skip to content

Instantly share code, notes, and snippets.

@zhentao
Created August 30, 2013 23:29
@Bean
public SimpleMessageListenerContainer listenerContainer() {
SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();
container.setConnectionFactory(connectionFactory());
container.setQueueNames(this.employeeQueueName);
container.setMessageListener(new MessageListenerAdapter(new MessageHandler(), jsonMessageConverter()));
return container;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment