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

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

Introduction

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

Prototype

public void setDestination(@Nullable String destination) 

Source Link

Document

Set the name of the destination for this endpoint.

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   ww  w  . j a va 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);
}