Examples of AmqpLogMessageConverter


Examples of org.springframework.amqp.rabbit.log4j.listener.AmqpLogMessageConverter

    SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();
    container.setConnectionFactory(connectionFactory());
    container.setQueueNames(LOG_QUEUE_NAME);

    MessageListenerAdapter listenerAdapter = new MessageListenerAdapter(messageListener(),
        new AmqpLogMessageConverter());
    listenerAdapter.setDefaultListenerMethod("handleLog");

    container.setMessageListener(listenerAdapter);
    return container;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.