Skip to content

Commit

Permalink
[RESTEASY-2711] Fix security-legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
asoldano committed Sep 29, 2020
1 parent 2b2aa0e commit 1e8ecfe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Expand Up @@ -174,18 +174,13 @@ protected Cache findCache()
protected Cache getDefaultCache()
{
GlobalConfiguration gconfig = new GlobalConfigurationBuilder().defaultCacheName("custom-cache")
.globalJmxStatistics()
.allowDuplicateDomains(true)
.enable()
.jmxDomain("custom-cache")
.build();

Configuration configuration = new ConfigurationBuilder()
.memory()
.evictionType(EvictionType.COUNT)
.evictionStrategy(EvictionStrategy.NONE)
.size(1000)
.jmxStatistics().enable()
.build();
ConfigurationBuilder configBuilder = new ConfigurationBuilder().read(configuration);
EmbeddedCacheManager manager = new DefaultCacheManager(gconfig, configuration);
Expand Down
Expand Up @@ -113,18 +113,13 @@ public static void setupIDM(String realmJson) throws Exception
public static Cache getDefaultCache()
{
GlobalConfiguration gconfig = new GlobalConfigurationBuilder().defaultCacheName("custom-cache")
.globalJmxStatistics()
.allowDuplicateDomains(true)
.enable()
.jmxDomain("custom-cache")
.build();

Configuration configuration = new ConfigurationBuilder()
.memory()
.evictionType(EvictionType.COUNT)
.evictionStrategy(EvictionStrategy.NONE)
.size(5000)
.jmxStatistics().enable()
.build();
EmbeddedCacheManager manager = new DefaultCacheManager(gconfig, configuration);
return manager.getCache("custom-cache");
Expand Down

0 comments on commit 1e8ecfe

Please sign in to comment.