Create an MBean (JMX) in Scala

Create the MBean like this

NOTE, that the interface/trait must end with MBean in the name

And this is how you register your MBean

And the simply launch Java Mission Control (imc), attach to the JVM, and modify your MBean attributes as you like.

Enjoy!

2 thoughts on “Create an MBean (JMX) in Scala

Leave a Reply

Your email address will not be published. Required fields are marked *