Example usage for org.springframework.jms.listener AbstractMessageListenerContainer setMessageListener

List of usage examples for org.springframework.jms.listener AbstractMessageListenerContainer setMessageListener

Introduction

In this page you can find the example usage for org.springframework.jms.listener AbstractMessageListenerContainer setMessageListener.

Prototype

public void setMessageListener(@Nullable Object messageListener) 

Source Link

Document

Set the message listener implementation to register.

Usage

From source file:org.springframework.integration.jms.JmsDestinationBackedMessageChannel.java

@Override
public void afterPropertiesSet() throws Exception {
    super.afterPropertiesSet();
    AbstractMessageListenerContainer container = this.getListenerContainer();
    this.configureDispatcher(container.isPubSubDomain());
    container.setMessageListener(this);
    if (!container.isActive()) {
        container.afterPropertiesSet();/*w w  w . j av a 2  s .c  o  m*/
    }
}