Bug #2139
Spring Context Resource not closing Spring Context since Spring 5
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. }