Example usage for org.springframework.jms.core JmsTemplate getConnectionFactory

List of usage examples for org.springframework.jms.core JmsTemplate getConnectionFactory

Introduction

In this page you can find the example usage for org.springframework.jms.core JmsTemplate getConnectionFactory.

Prototype

@Nullable
public ConnectionFactory getConnectionFactory() 

Source Link

Document

Return the ConnectionFactory that this accessor uses for obtaining JMS Connection Connections .

Usage

From source file:com.oneops.daq.jms.SensorPublisher.java

/**
 * Close connection./*from   w w w .j a v a  2s.c  om*/
 */
public void closeConnection() {
    for (JmsTemplate jt : producers) {
        ((PooledConnectionFactory) jt.getConnectionFactory()).stop();
    }
    producers = null;
}