|
|
|
@ -143,6 +143,13 @@ public class RedissonSessionManager extends ManagerBase {
|
|
|
|
|
@Override
|
|
|
|
|
protected void startInternal() throws LifecycleException {
|
|
|
|
|
super.startInternal();
|
|
|
|
|
|
|
|
|
|
redisson = buildClient();
|
|
|
|
|
|
|
|
|
|
setState(LifecycleState.STARTING);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected RedissonClient buildClient() throws LifecycleException {
|
|
|
|
|
Config config = null;
|
|
|
|
|
try {
|
|
|
|
|
config = Config.fromJSON(new File(configPath), getClass().getClassLoader());
|
|
|
|
@ -166,12 +173,10 @@ public class RedissonSessionManager extends ManagerBase {
|
|
|
|
|
throw new IllegalStateException("Unable to initialize codec with ClassLoader parameter", e);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
redisson = Redisson.create(config);
|
|
|
|
|
return Redisson.create(config);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
throw new LifecycleException(e);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setState(LifecycleState.STARTING);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|