]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.server/src/main/resources/org/argeo/slc/server/spring/jmx.xml
Introduce list results attributes
[gpl/argeo-slc.git] / runtime / org.argeo.slc.server / src / main / resources / org / argeo / slc / server / spring / jmx.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:aop="http://www.springframework.org/schema/aop"
5 xmlns:tx="http://www.springframework.org/schema/tx"
6 xsi:schemaLocation="
7 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"
8 default-lazy-init="true">
9
10 <!-- MBeans -->
11 <bean id="hibernateStatistics"
12 class="org.hibernate.jmx.StatisticsService" lazy-init="false">
13 <property name="sessionFactory" ref="sessionFactory" />
14 </bean>
15
16 <!-- JMX -->
17 <bean id="jmxExporter"
18 class="org.springframework.jmx.export.MBeanExporter"
19 lazy-init="false">
20 <property name="beans">
21 <map>
22 <entry
23 key="bean:name=hibernateStatistics,type=statistics,sessionFactory=sessionFactory"
24 value-ref="hibernateStatistics" />
25 </map>
26 </property>
27 </bean>
28
29 <bean id="jxmServerConnector"
30 class="org.springframework.jmx.support.ConnectorServerFactoryBean"
31 lazy-init="false" depends-on="rmiRegistry">
32 <property name="objectName" value="connector:name=rmi" />
33 <property name="serviceUrl"
34 value="service:jmx:rmi://localhost/jndi/rmi://localhost:1099/springconnector" />
35 </bean>
36
37 <bean id="rmiRegistry"
38 class="org.springframework.remoting.rmi.RmiRegistryFactoryBean"
39 lazy-init="false">
40 <property name="port" value="1099" />
41 </bean>
42 </beans>