Thursday, April 27, 2006

Hibernate Stats with jManage

You can configure Hibernate to expose statistics of a Hibernate SessionFactory via JMX. Please see the hibernate documentation for more information:

Before you can look at Hibernate stats via jManage, you need to copy hibernate-3.1.jar to JMANAGE_HOME/lib folder, and restart jManage.

Following is an example of getting Second Level Cache statistics for a cached entity.