Project

General

Profile

Bug #2139

Spring Context Resource not closing Spring Context since Spring 5

Added by Henning Blohm about 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
z2-addon-spring
Target version:
Start date:
14.09.2022
Due date:
% Done:

0%

Estimated time:
origin:

Description

As Spring moved from DisposableBean to Closeable.

I.e. we must add

if (this.ctxt instanceof Closeable) {
    logger.fine("Closing spring context component: "+this.name);
    try {
        ((Closeable) this.ctxt).close();
    } catch (Exception e) {
        logger.log(Level.WARNING,"Exception during context close: "+this.name,e);
    }
}

to ContextResource invalidate. }

#1

Updated by Henning Blohm almost 2 years ago

  • Status changed from New to In Progress
#2

Updated by Henning Blohm almost 2 years ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF