Skip to content

Commit

Permalink
close each listener explicitly when shutting down; refs #26689
Browse files Browse the repository at this point in the history
  • Loading branch information
Keelhaul committed Jan 23, 2025
1 parent aab6c76 commit 34eddb2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ public void init() {
*/
@PreDestroy
public void close() throws JMSException {
log.debug("MessageQueueBean.close()");
for (DefaultQueueListener listener : getListeners()) {
listener.close();
}
if (this.queueSession != null) {
this.queueSession.close();
}
Expand Down

0 comments on commit 34eddb2

Please sign in to comment.