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

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

Introduction

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

Prototype

public void registerEndpoint(JmsListenerEndpoint endpoint) 

Source Link

Document

Register a new JmsListenerEndpoint using the default JmsListenerContainerFactory to create the underlying container.

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();/*from w w  w . j a  v a  2 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);
}