This is an automated email from the ASF dual-hosted git repository. reta pushed a commit to branch 3.6.x-fixes in repository https://gitbox.apache.org/repos/asf/cxf.git
commit d9db0c7c274bf383f4be6ab48c6c33e1fb84d8cf Author: Andriy Redko <[email protected]> AuthorDate: Wed Dec 17 08:53:01 2025 -0500 [CXF-9191] Fix JCacheTokenStore resource leak (cherry picked from commit 6711a68b6dd6473a3c91087f8bde001b9d060fa9) (cherry picked from commit 1123a76501254405ad4271d5d87912a906bf82b3) (cherry picked from commit a45986340c5b0a734c02fa69c7eb99baab5bfaac) --- .../apache/cxf/ws/security/tokenstore/jcache/JCacheTokenStore.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/jcache/JCacheTokenStore.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/jcache/JCacheTokenStore.java index b424134920..25c29aa771 100644 --- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/jcache/JCacheTokenStore.java +++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/jcache/JCacheTokenStore.java @@ -116,6 +116,10 @@ public class JCacheTokenStore implements TokenStore, Closeable, BusLifeCycleList cacheManager.destroyCache(key); cacheManager.close(); } + + if (bus != null) { + bus.getExtension(BusLifeCycleManager.class).unregisterLifeCycleListener(this); + } } public void initComplete() {
