Skip to content

Instantly share code, notes, and snippets.

@iamkristian
Created April 20, 2011 06:43
Show Gist options
  • Save iamkristian/930515 to your computer and use it in GitHub Desktop.
Save iamkristian/930515 to your computer and use it in GitHub Desktop.
Howto expose springbeans as mbeans in your container!
<bean id="myBean" class="com.iamkristian.MyBean" factory-method="instance" />
<bean class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
<property name="beans">
<map>
<entry key="bean:name=myBean" value-ref="myBean"/>
</map>
</property>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment