Example usage for org.springframework.jms.config JmsListenerEndpointRegistrar setContainerFactory

List of usage examples for org.springframework.jms.config JmsListenerEndpointRegistrar setContainerFactory

Introduction

In this page you can find the example usage for org.springframework.jms.config JmsListenerEndpointRegistrar setContainerFactory.

Prototype

public void setContainerFactory(JmsListenerContainerFactory<?> containerFactory) 

Source Link

Document

Set the JmsListenerContainerFactory to use in case a JmsListenerEndpoint is registered with a null container factory.

Usage

From source file:org.openbaton.common.vnfm_sdk.amqp.AbstractVnfmSpringJMS.java

@Override
public void configureJmsListeners(JmsListenerEndpointRegistrar registrar) {
    registrar.setContainerFactory(containerFactory);
    SimpleJmsListenerEndpoint endpoint = new SimpleJmsListenerEndpoint();
    endpoint.setDestination("core-" + this.type + "-actions");
    endpoint.setMessageListener(this);
    loadProperties();/*  w  w w. j  a v  a2  s  . c o  m*/
    log.debug("CONFIGURE Properties are: " + properties);
    endpoint.setConcurrency("5-" + properties.getProperty("concurrency", "15"));
    endpoint.setId(String.valueOf(Thread.currentThread().getId()));
    registrar.registerEndpoint(endpoint);
}

From source file:org.bremersee.common.spring.autoconfigure.JmsAutoConfiguration.java

@Override
public void configureJmsListeners(JmsListenerEndpointRegistrar registrar) {
    registrar.setContainerFactory(defaultJmsListenerContainerFactory());
}