This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Agent ID of MBean Server

Jan 13th, 2008, 03:05 PM

Hello,

i am playing around with JMX and Spring and everything works fine. I have installed a local Tomcat 6.x and now I would like to register a mbean in the mbean server of the tomcat. I can configure the mbean with spring and I can see the mbean with jconsole, but I dont understand one thing:

How can a expose a mbean in the tomcat mbean server, so how do I get the 'agentId' of the server, in order to expose the mbean exactly in this server?

My mbeanserver config contains the "locateExistingServerIfPossible" flag. When I opens jconsole, I see a seperate mbean instance with the name of my bean.