Package org.springframework.jms.config

Examples of org.springframework.jms.config.JmsListenerEndpointRegistry


    return new JmsListenerAnnotationBeanPostProcessor();
  }

  @Bean(name = JmsListenerConfigUtils.JMS_LISTENER_ENDPOINT_REGISTRY_BEAN_NAME)
  public JmsListenerEndpointRegistry defaultJmsListenerEndpointRegistry() {
    return new JmsListenerEndpointRegistry();
  }
View Full Code Here


      return postProcessor;
    }

    @Bean
    public JmsListenerEndpointRegistry jmsListenerEndpointRegistry() {
      return new JmsListenerEndpointRegistry();
    }
View Full Code Here

    JmsListenerEndpoint endpoint = defaultFactory.getListenerContainers().get(0).getEndpoint();
    assertEquals("Wrong endpoint type", SimpleJmsListenerEndpoint.class, endpoint.getClass());
    assertEquals("Wrong listener set in custom endpoint", context.getBean("simpleMessageListener"),
        ((SimpleJmsListenerEndpoint) endpoint).getMessageListener());

    JmsListenerEndpointRegistry customRegistry =
        context.getBean("customRegistry", JmsListenerEndpointRegistry.class);
    assertEquals("Wrong number of containers in the registry", 2,
        customRegistry.getListenerContainers().size());
    assertNotNull("Container with custom id on the annotation should be found",
        customRegistry.getListenerContainer("listenerId"));
    assertNotNull("Container created with custom id should be found",
        customRegistry.getListenerContainer("myCustomEndpointId"));
  }
View Full Code Here

      return new JmsListenerContainerTestFactory();
    }

    @Bean
    public JmsListenerEndpointRegistry customRegistry() {
      return new JmsListenerEndpointRegistry();
    }
View Full Code Here

TOP

Related Classes of org.springframework.jms.config.JmsListenerEndpointRegistry

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.