diff --git a/openam-core/src/main/java/org/forgerock/openam/session/service/SessionAccessManager.java b/openam-core/src/main/java/org/forgerock/openam/session/service/SessionAccessManager.java index 030834f28a..401a6e7903 100644 --- a/openam-core/src/main/java/org/forgerock/openam/session/service/SessionAccessManager.java +++ b/openam-core/src/main/java/org/forgerock/openam/session/service/SessionAccessManager.java @@ -43,13 +43,14 @@ public class SessionAccessManager { private final SessionCache sessionCache; private final InternalSessionStore internalSessionStore; private final NonExpiringSessionManager nonExpiringSessionManager; - + private final ScheduledExecutorService scheduledExecutorService; + @VisibleForTesting @Inject SessionAccessManager(final SessionCache sessionCache, final AMExecutorServiceFactory esf, final ThreadMonitor threadMonitor, final InternalSessionStore internalSessionStore) { this.sessionCache = sessionCache; - ScheduledExecutorService scheduledExecutorService = esf.createScheduledService(1, "NonExpiringSessionManager"); + this.scheduledExecutorService = esf.createScheduledService(1, "NonExpiringSessionManager"); this.nonExpiringSessionManager = new NonExpiringSessionManager(this, scheduledExecutorService, threadMonitor); this.internalSessionStore = internalSessionStore; } diff --git a/openam-server/pom.xml b/openam-server/pom.xml index c1e80e7408..ed0bf08867 100644 --- a/openam-server/pom.xml +++ b/openam-server/pom.xml @@ -44,7 +44,7 @@ org.codehaus.cargo cargo-maven3-plugin - 1.10.9 + 1.10.10 org.codehaus.plexus @@ -99,7 +99,7 @@ ${basedir}/target/config ${basedir}/src/test/resources/logback-test.xml false - + message on false