Top Description Interfaces Classes
[default module]

Package org.hibernate.jmx


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.

Interface Summary

Modifier and TypeInterface and Description
public interface
HibernateServiceMBean

Hibernate JMX Management API

public interface
StatisticsServiceMBean

MBean exposing Session Factory statistics

Class Summary

Modifier and TypeClass and Description
public class
HibernateService

Implementation of HibernateServiceMBean.

public class
SessionFactoryStub

A flyweight for SessionFactory.

public class
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);