We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d18bdf6 commit 4255774Copy full SHA for 4255774
spring-jms/src/main/java/org/springframework/jms/connection/CachingConnectionFactory.java
@@ -298,9 +298,15 @@ else if (methodName.equals("close")) {
298
if (active) {
299
synchronized (this.sessionList) {
300
if (this.sessionList.size() < getSessionCacheSize()) {
301
- logicalClose((Session) proxy);
302
- // Remain open in the session list.
303
- return null;
+ try {
+ logicalClose((Session) proxy);
+ // Remain open in the session list.
304
+ return null;
305
+ }
306
+ catch (JMSException ex) {
307
+ logger.trace("Logical close of cached JMS Session failed - discarding it", ex);
308
+ // Proceed to physical close from here...
309
310
}
311
312
0 commit comments