1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
<!--
when the autodetect will work it will allow to autodetect each MBean properly configured
see chapt. 19.4 of spring doc 1.2.8 for change the names of the objects
<property name="autodetect" value="true"/>-->
<!-- map of bean that we want to allow access, the key is the name showed in the JMX console -->
<property name="beans">
<map>
<entry key="evega.beans:name=CountryMessagesDatabase" value-ref="countryMessageSource"/>
<entry key="evega.beans:name=FIHShortMessagesDatabase" value-ref="fihShortMessageSource"/>
<entry key="evega.beans:name=FIHMessagesDatabase" value-ref="fihMessageSource"/>
<entry key="evega.beans:name=CurrencyDescriptionMessagesDatabase" value-ref="currencyDescriptionMessageSource"/>
<entry key="evega.beans:name=RatingTypeDescriptionMessagesDatabase" value-ref="ratingTypeDescriptionMessageSource"/>
<entry key="evega.beans:name=TKEconomicalSectorDescriptionMessagesDatabase" value-ref="tkEconomicalSectorDescriptionMessageSource"/>
<entry key="evega.beans:name=MSCIEconomicalSectorDescriptionMessagesDatabase" value-ref="msciEconomicalSectorDescriptionMessageSource"/>
</map>
</property>
<property name="assembler" ref="assembler"/>
</bean>
<!-- metadata needed for a correct behavior of the exporter -->
<bean id="assembler" class="org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler">
<property name="attributeSource" ref="attributeSource"/>
</bean>
<!-- when using annotations -->
<bean id="attributeSource"
class="org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource"/> |
Partager