You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use redisson as jCache implementation for the httpSessionCache of my open liberty server.
So far, I've managed to use the library by providing a configuration yaml file like so:
My goal is to provide the redis uri and password using environment variables. The open liberty docs state, that I should be able to provide a "list of vendor-specific JCache configuration properties, which are passed to the JCache provider when the CacheManager is obtained" (see here )
My naive approach was to provide those properties with the same keys as I would in the yaml file:
[INFO] [ERROR ] SESN0307E: An exception occurred when initializing the cache. The exception is: java.lang.IllegalStateException: Default configuration hasn't been specified!
[INFO] at org.redisson.jcache.JCacheManager.createCache(JCacheManager.java:119)
[INFO] at com.ibm.ws.session.store.cache.CacheHashMap.cacheInit(CacheHashMap.java:192)
[INFO] at [internal classes]
Is this approach feasible or is there another way of achieving an environment variable based configuration?
Is there some piece of documentation specifying the "vendor-specific JCache configuration properties"?
Thanks a lot
Max
The text was updated successfully, but these errors were encountered:
Hi @mrniko
Indeed directly stating the env variables in the YAML configuration file worked. It didn't occur to me since I was focused on using the open liberty server.xml variables.
Thanks for the support
I am trying to use redisson as
jCache
implementation for thehttpSessionCache
of my open liberty server.So far, I've managed to use the library by providing a configuration yaml file like so:
My goal is to provide the redis uri and password using environment variables. The open liberty docs state, that I should be able to provide a "list of vendor-specific JCache configuration properties, which are passed to the JCache provider when the CacheManager is obtained" (see here )
My naive approach was to provide those properties with the same keys as I would in the yaml file:
This unfortunately failed with
Is this approach feasible or is there another way of achieving an environment variable based configuration?
Is there some piece of documentation specifying the "vendor-specific JCache configuration properties"?
Thanks a lot
Max
The text was updated successfully, but these errors were encountered: