Author: coheigea
Date: Fri May 17 14:19:09 2013
New Revision: 1483821

URL: http://svn.apache.org/r1483821
Log:
Take EhCache TTL from the configuration file

Modified:
    cxf/fediz/trunk/   (props changed)
    
cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java

Propchange: cxf/fediz/trunk/
------------------------------------------------------------------------------
  Merged /cxf/fediz/branches/1.0.x-fixes:r1483813

Modified: 
cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java
URL: 
http://svn.apache.org/viewvc/cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java?rev=1483821&r1=1483820&r2=1483821&view=diff
==============================================================================
--- 
cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java
 (original)
+++ 
cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheTokenReplayCache.java
 Fri May 17 14:19:09 2013
@@ -66,6 +66,9 @@ public class EHCacheTokenReplayCache imp
         
         Ehcache newCache = new Cache(cc);
         cache = cacheManager.addCacheIfAbsent(newCache);
+
+        // Set the TimeToLive value from the CacheConfiguration
+        ttl = cc.getTimeToLiveSeconds();
     }
     
     /**


Reply via email to