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

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

Introduction

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

Prototype

public final boolean isActive() 

Source Link

Document

Return whether this container is currently active, that is, whether it has been set up but not shut down yet.

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();//from   w ww .  j av  a  2s. c  o  m
    }
}