Merge branch '6.0.x'

This commit is contained in:
Sam Brannen
2023-06-22 15:12:25 +02:00
14 changed files with 27 additions and 30 deletions

View File

@@ -410,7 +410,7 @@ public class SingleConnectionFactory implements ConnectionFactory, QueueConnecti
}
// Create new (method local) connection, which is later assigned to instance connection
// - prevention to hold instance connection without exception listener, in case when
// some subsequent methods (after creation of connection) throws JMSException
// some subsequent methods (after creation of connection) throw JMSException
Connection con = doCreateConnection();
try {
prepareConnection(con);
@@ -422,9 +422,7 @@ public class SingleConnectionFactory implements ConnectionFactory, QueueConnecti
con.close();
}
catch(Throwable th) {
if (logger.isDebugEnabled()) {
logger.debug("Could not close newly obtained JMS Connection that failed to prepare", th);
}
logger.debug("Could not close newly obtained JMS Connection that failed to prepare", th);
}
throw ex;
}