Package org.hibernate.jmx

This package exposes a Hibernate instance via JMX.

See:
          Description

Interface Summary
HibernateServiceMBean Hibernate JMX Management API
StatisticsServiceMBean MBean exposing Session Factory statistics
 

Class Summary
HibernateService Implementation of HibernateServiceMBean.
SessionFactoryStub A flyweight for SessionFactory.
StatisticsService JMX service for Hibernate statistics

Register this MBean in your JMX server for a specific session factory //build the ObjectName you want Hashtable tb = new Hashtable(); tb.put("type", "statistics"); tb.put("sessionFactory", "myFinancialApp"); ObjectName on = new ObjectName("hibernate", tb); StatisticsService stats = new StatisticsService(); stats.setSessionFactory(sessionFactory); server.registerMBean(stats, on); And call the MBean the way you want

Register this MBean in your JMX server with no specific session factory //build the ObjectName you want Hashtable tb = new Hashtable(); tb.put("type", "statistics"); tb.put("sessionFactory", "myFinancialApp"); ObjectName on = new ObjectName("hibernate", tb); StatisticsService stats = new StatisticsService(); server.registerMBean(stats, on); And call the MBean by providing the SessionFactoryJNDIName first.
 

Package org.hibernate.jmx Description

This package exposes a Hibernate instance via JMX.

HibernateService allows configuration and management of the Hibernate runtime. StatisticsService reports information that might be useful for performance tuning.