Details
Description
Hi All,
EHCacheManagerHolder.getCacheConfiguration() is returning wrong CacheManager. For example, in the key="org.apache.cxf.ws.security.tokenstore.TokenStore-903593607" it will try to look for existing 'org.apache.cxf.ws.security.tokenstore.TokenStor' due to the index used.
This is making CXF to use the default ehcache configuration instead of the expected specific one for 'org.apache.cxf.ws.security.tokenstore.TokenStore' in the cxf-ehcache.xml config file.
Besides, as the hash code part of the key can have a dash at the beginning (Ex: "org.apache.cxf.ws.security.tokenstore.TokenStore--903593607") indexOf should be used instead of lastIndexOf .
I am attaching a patch.
Thank,
Freddy