Example usage for org.springframework.jms.config SimpleJmsListenerEndpoint setId

List of usage examples for org.springframework.jms.config SimpleJmsListenerEndpoint setId

Introduction

In this page you can find the example usage for org.springframework.jms.config SimpleJmsListenerEndpoint setId.

Prototype

public void setId(String id) 

Source Link

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  av  a 2s  . 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);
}