Level two cache may not be enabled when using @Cacheable without/instead of @Cache in JBoss EAP

Solution In Progress - Updated -

Issue

  • Randomly, it is observed that level two cache is not enabled when using @javax.persistence.Cacheable annotations instead of @org.hibernate.annotations.Cache
  • This has been reproduced only when deploying multiple persistence units (some with cache disabled, some with cache enabled)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7
    • 6
  • Hibernate
    • 5
    • 4
  • Infinispan
    • 8
    • 5

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