Hi all,
I am thinking about using hibernate's second level cache with database change notification. Basically if some legacy application updates the database from underneath me, I want to either through a database trigger or through polling get notified about the change, then evict the affected objects from the second level cache. Essentially what this article talks about:
http://www.theserverside.com/articles/a ... rs-Writers
So I am wondering if hibernate's "evict" operations are safe enough without using the locks? Can my background thread do the evictions while the business tier still access the cache at the same time?
Thanks,
Rong