With Hibernate and clustered EHCache OSCache query cache is not always being invalidated on changes

Solution Verified - Updated -

Issue

  • Our problem is that when an update (that affects the results of a named query) is performed on one node, the query cache is not invalidated on the other node. To be exact we observe that the result objects are invalidated and refreshed correctly from the DB, while the result set of the named queries are out-of-date.

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 4.3
  • EHCache/OSCache
  • CacheConcurrencyStrategy.NONSTRICT_READ_WRITE  in use

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.