I have a standard application and I want to expose an MBean. Currently I am doing the following in my application init:
final MBeanServer mbs = ManagementFactory.getPlatf
name = new ObjectName("com.example:ty
final myMBean mbean = new myMBean();
This was taken from the link, and I assume if I've done it right I can directly access the MBean via JConsole.
I was also looking at the Spring Implementation, but am unsure if I am required to start a server first:
Essentially all I want to do is have my standalone application make the MBean availble so that JConsole can be used to extract the required information.