How to check whether the Object is loaded from the Second Level Cache in Hibernate

Solution Verified - Updated -

Issue

  • How do I enable Second Level Caching (L2C) in Hibernate ?
  • What are the performance benefits of using and configuring the Second Level Caching in highly resource intensive SQL queries ?
  • How can one know whether the Second Level Caching is enabled in Hibernate ?
  • What metrics can be checked to evaluate the performance benefits when enabling the Second Level Caching in Hibernate ?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 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