0 Replies Latest reply on Dec 11, 2009 1:55 AM by Dustin Callaway

    cache.evict() not working

    Dustin Callaway Newbie


      I'd like to manually evict an item from the in-memory cache but not from the JDBC cache loader. This method seems to be what I'm looking for:


      I can call this method fine but when I then attempt to retrieve the node (expecting it to be loaded from the database after eviction), I get this error:

      org.jboss.cache.NodeNotValidException: Node /my/evicted/node is not valid. Perhaps it has been moved or removed.

      I just want to refresh this node from the database (invalidate the in-memory node and have it reload from the cache loader). Is evict() the right method for this? Does the passivation setting affect this?