Ok thx to all. In fact I removed the expiration configuration in the config
file and the code. I just added the line suggested by lovelyliatroim and it
sounds to work fine I just have warnings in the log file about the different
nodes of the FQN where I add my object :
anonymous wrote :
Oups here is my eviction configuration (I choose the most simple thing ;) ) :
anonymous wrote :
|
| !-- Name of the DEFAULT eviction policy class. --
| org.jboss.cache.eviction.ExpirationPolicy
|
|
View the original
--
attribute name=EvictionPolicyConfig
| config
| attribute
name=policyClassorg.jboss.cache.eviction.ExpirationPolicy/attribute
| /config
|/attribute
View the original post :
If you want to specify the eviction melodramatically only (no eviction config
in the xml file), you have to do it like this:
| ExpirationConfiguration expirationConfiguration = new
ExpirationConfiguration();
| expirationConfiguration.setTimeToLiveSeconds(2);
| EvictionConfig
Have a read here
http://www.jboss.org/file-access/default/members/jbosscache/freezone/docs/2.2.0.CR6/userguide_en/html_single/index.html#d0e3603
Looks to me that your missing the equivalent of this
| // sets the expiry time for a node
|