Opening caveat: trying to manually manage the Hibernate 2nd level cache sounds 
like asking for problems.

The session.evict() call in Hibernate works on the session cache, not the 2nd 
level cache; that's why it has no effect.  Check the Hibernate docs to see if 
there is an equivalent operation user's are meant to perform on the 2nd level 
cache; if so use that instead of manipulating TreeCache directly.

If you decide you still want to manipulate the tree cache directly, do you want 
to call evict() or remove()?

The log message you quoted is debug logging from the background eviction 
process that you're manually overriding; why are you concerned about it?  It's 
not telling you that your remove() call didn't work.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978261#3978261

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978261
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to