2013-03-20 3 views
0

Мне нравится видеть статистику спящего режима, но не могу найти их.JMX от Spring @ Tomcat с использованием Java на основе конфигурации

Где я должен искать?

@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

+0

Вы пробовали это? - http://stackoverflow.com/questions/6708602/how-to-configure-hibernate-statistics-in-spring-3-0-application –

+0

Нет, javac sais:

ответ

0

Хорошо, jmxbean должен быть на корню.

Я пометил hibernateStatistics() - Bean, чтобы быть @DependsOn ("hibernate").

enter image description here