Project

General

Profile

Bug #2139

Spring Context Resource not closing Spring Context since Spring 5

Added by Henning Blohm 3 months ago.

Status:
New
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. }

No data to display

Also available in: Atom PDF