You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jason Pell (JIRA)" <ji...@apache.org> on 2014/06/15 02:15:02 UTC
[jira] [Comment Edited] (CXF-5802) Share an existing global ehcache
manager for ws security replay caches
[ https://issues.apache.org/jira/browse/CXF-5802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14031740#comment-14031740 ]
Jason Pell edited comment on CXF-5802 at 6/15/14 12:13 AM:
-----------------------------------------------------------
I have introduced a cxf bus property which allows setting a reference to a global eh cache manager to use instead of creating a new one specific to cxf
<cxf:bus>
<cxf:properties>
<entry key="ws-security.global.ehcachemanager"
value="myEhCacheManager"/>
</cxf:properties>
</cxf:bus>
Setting this property and the releaseCacheManager in EHCacheManagerHolder will be a noop so that cxf does not inadvertantly shut down this global cache manager.
was (Author: jpell):
I have introduced a cxf bus property which allows setting a reference to a global eh cache manager to use instead of creating a new one specific to cxf
<cxf:bus>
<cxf:properties>
<entry key="ws-security.global.ehcachemanager"
value="myEhCacheManager"/>
</cxf:properties>
</cxf:bus>
> Share an existing global ehcache manager for ws security replay caches
> ----------------------------------------------------------------------
>
> Key: CXF-5802
> URL: https://issues.apache.org/jira/browse/CXF-5802
> Project: CXF
> Issue Type: Improvement
> Affects Versions: 2.7.11, 3.0.0
> Reporter: Jason Pell
> Assignee: Jason Pell
>
> In CXF if we are using ehcache for such as hibernate, cxf creates a separate ehcache manager. We can configure it to use the same ehcache.xml file, but still the additional manager is created.
> Enhance CXF to use a global ehcache manager, and a single ehcache.xml as configuration options.
> This will avoid the following errors in logs when CXF creates an additional manager when using a single ehcache.xml file
> net.sf.ehcache.DiskStorePathManager - diskStorePath '../tmp' is already used by an existing CacheManager either in the same VM or in a different process.
> The diskStore path for this CacheManager will be set to ../tmp/ehcache_auto_created2006383781232499638diskstore.
--
This message was sent by Atlassian JIRA
(v6.2#6252)