List of usage examples for org.springframework.jms.core JmsTemplate getConnectionFactory
@Nullable
public ConnectionFactory getConnectionFactory()
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; }