in logging/jms-appender/src/main/java/org/apache/servicemix/logging/jms/JMSAppender.java [99:120]
private void closeJMSResources() {
try {
if (producer != null) {
producer.close();
producer = null;
}
if (session != null) {
session.close();
session = null;
}
if (connection != null) {
connection.close();
connection = null;
}
} catch (JMSException e) {
LOG.debug("Exception caught while closing JMS resources", e);
// let's just set all the fields to null so stuff will be re-created
producer = null;
session = null;
connection = null;
}
}