Question

I like to see the hibernate statistics but cant find them.

Where do i have to search?

@Bean
@Lazy
public MBeanExporter getExporter() {
    MBeanExporter exporter = new MBeanExporter();
    exporter.setServer(mBeanFactory());
    exporter.setRegistrationBehavior(MBeanExporter.REGISTRATION_REPLACE_EXISTING);
    HashMap beans = new HashMap();
    beans.put("hibernate:name=statistics", hibernateStatistics());
    exporter.setBeans(beans);
    return exporter;
}

enter image description here

Was it helpful?

Solution

Ok, the jmxbean should be on root.

I had do mark the hibernateStatistics()-Bean to be @DependsOn("hibernate").

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top