List of usage examples for org.springframework.amqp.rabbit.connection RabbitResourceHolder isSynchronizedWithTransaction
public boolean isSynchronizedWithTransaction()
From source file:org.springframework.amqp.rabbit.connection.ConnectionFactoryUtils.java
public static void releaseResources(RabbitResourceHolder resourceHolder) { if (resourceHolder == null || resourceHolder.isSynchronizedWithTransaction()) { return;// w w w .j a va2s . c o m } RabbitUtils.closeChannel(resourceHolder.getChannel()); RabbitUtils.closeConnection(resourceHolder.getConnection()); }