Project

General

Profile

Bug #2139

Spring Context Resource not closing Spring Context since Spring 5

Added by Henning Blohm over 1 year ago. Updated over 1 year 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 over 1 year ago

  • Status changed from New to In Progress
#2

Updated by Henning Blohm over 1 year ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF