Newer
Older
alarm / WebRoot / WEB-INF / classes / spring / applicationContext-jmx.xml
zhout on 2 Mar 2022 1 KB first commit
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
	http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">

	<context:mbean-server />

	<!--<bean id="mbeanExporter" class="org.springframework.jmx.export.MBeanExporter">
		<property name="beans">
			<map>
				<entry key="org.hibernate:name=hibernateStatistics" value-ref="hibernateStatistics" />
				<entry key="commons-dbcp:name=commons-dbcp">
					<bean factory-bean="&amp;dataSource" factory-method="getBasicDataSource"/>
				</entry>
			</map>
		</property>
	</bean>

	<bean name="hibernateStatistics" class="org.hibernate.jmx.StatisticsService">
		<property name="sessionFactory" ref="sessionFactory" />
	</bean>

	<bean name="ehcacheStatistics" class="net.sf.ehcache.management.ManagementService" init-method="init">
		<constructor-arg index="0" ref="ehcacheManager"/>
		<constructor-arg index="1" ref="mbeanServer"/>
		<constructor-arg index="2" value="true"/>
		<constructor-arg index="3" value="true"/>
		<constructor-arg index="4" value="true"/>
		<constructor-arg index="5" value="true"/>
		<constructor-arg index="6" value="true"/>
	</bean>-->

</beans>