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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content