Spring JMX

From Kb

Jump to: navigation, search

Contact Article Author | Blog of Article Author | FirstPartners.net Home | LinkedIn profile of Author

To Get Spring to Expose Beans Via JMX

Available on JBoss, OC4J etc.

<bean id="mbeanExporter"
		class="org.springframework.jmx.export.MBeanExporter">
		<property name="beans">
			<map>
				<!-- define classes to expose for instrumentation -->
				<entry key="bean:name=nameAsItWillAppearInJMXConsole"
					value-ref="nameOfBeanInSpringConfig" />
			</map>
		</property>
		<property name="server" ref="mbeanServer" />
	</bean>
Personal tools