/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<bean class="org.springframework.jmx.export.MBeanExporter"> <property name="autodetect" value="false" /> <property name="assembler"> <bean id="jmxAssembler" class="org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler"> <property name="attributeSource"> <bean class="org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource" /> </property> </bean> </property> <property name="beans"> <map> <entry key="org.hibernate:name=statistics"> <bean class="org.hibernate.jmx.StatisticsService"> <property name="statisticsEnabled" value="true" /> <property name="sessionFactory" ref="sessionFactory" /> </bean> </entry> </map> </property> </bean>