Skip to content

Commit

Permalink
CachingConnectionFactory proceeds to physicalClose in case of logical…
Browse files Browse the repository at this point in the history
…Close exceptions

Issue: SPR-12148
  • Loading branch information
jhoeller committed Sep 3, 2014
1 parent f4f7f40 commit 82f8b43
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,15 @@ else if (methodName.equals("close")) {
if (active) {
synchronized (this.sessionList) {
if (this.sessionList.size() < getSessionCacheSize()) {
logicalClose((Session) proxy);
// Remain open in the session list.
return null;
try {
logicalClose((Session) proxy);
// Remain open in the session list.
return null;
}
catch (JMSException ex) {
logger.trace("Logical close of cached JMS Session failed - discarding it", ex);
// Proceed to physical close from here...
}
}
}
}
Expand Down

0 comments on commit 82f8b43

Please sign in to comment.