I've gone through the process on this page to expose the JMX interface of a web application.
I've managed to view the exposed interface on the Tomcat JMX proxy but when I load JConsole and look for the exposed mbean interface I can't find anything related to the attributes and operations exposed.
Thre is no specific entry on jconsole for the web app so I figured it might be under the TOMCAT jmx entry. It's not. (bare in mind, I did manage to see it on the tomcat jmx proxy page).
How can I manage my web application locally? Why is JConsole not showing it?
I've managed to fix this by doing a few basic steps -
In the singleton I registered with the mbean server with this command:
ManagementFactory.getPlatformMBeanServer().registerMBean(this, name);
Thats it. (In a nut shell)