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.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | HibernateServiceMBean
Hibernate JMX Management API |
| public interface | StatisticsServiceMBean
MBean exposing Session Factory statistics |
| Modifier and Type | Class 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);
|