Package org.springframework.amqp.rabbit.listener.adapter

Examples of org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter


  }

  @Test
  public void testPojoListenerWithException() throws Exception {
    CountDownLatch latch = new CountDownLatch(messageCount);
    doListenerWithExceptionTest(latch, new MessageListenerAdapter(new PojoListener(latch, true)));
  }
View Full Code Here


    @Bean
    public SimpleMessageListenerContainer serviceListenerContainer() {
      SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();
      container.setConnectionFactory(rabbitConnectionFactory());
      container.setQueues(requestQueue());
      container.setMessageListener(new MessageListenerAdapter(new PojoListener()));
      return container;
    }
View Full Code Here

    @Bean
    public SimpleMessageListenerContainer dlListenerContainer() {
      SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();
      container.setConnectionFactory(rabbitConnectionFactory());
      container.setQueues(dlq());
      container.setMessageListener(new MessageListenerAdapter(deadListener()));
      return container;
    }
View Full Code Here

TOP

Related Classes of org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter

Copyright © 2018 www.massapicom. 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.