I'm trying to evict manualy all nodes from memory cache to cache loader (mysql datastore).I'm doing this as I want to keep data from cache even if I shutdown JBoss server, so I want to store physicaly datas , and when I start Jboss another time, it will bring up all datas from cacheloader.

When the eviction policy in effect calls evict() to evict a node from the cache, if passivation is enabled, a notification that the node is being passivated will be emitted to the tree cache listeners and the node and its children will be stored in the cache loader store

It means that if passivation is true, a call to evict() will call another method in order to store node into cache loader store. What is the method to call, and How I do this ?

1. This will fetch you a node named 'root' (i.e. a child of root node), and not the root node which is '/'. Was this your intention? 2. You can evict all existing nodes this way: cache.evict(Fqn.ROOT);

If code was your issues hope this helps. Otherwise, Can you please create a UT (or change the one I've attached) to reproduce the issue, then a JIRA and attach code+config to it.

1. This will fetch you a node named 'root' (i.e. a child of root node), and not the root node which is '/'. Was this your intention?2. You can evict all existing nodes this way: cache.evict(Fqn.ROOT);

If code was your issues hope this helps. Otherwise, Can you please create a UT (or change the one I've attached) to reproduce the issue, then a JIRA and attach code+config to it.

Well , actually, I need to evict all nodes from memory and put them into datastore. Your example is interesting, but it is based on TreeCache, not PojoCache. Perhaps it have an issue with this version (1.4.1 SP3)