Right, ok, this makes sense. And what about if it runs in another tomcat instance (or if it's a standalone application)? Is the url something like
service:jmx:rmi:///jndi/rmi://<host>:<port>/jmxrmi, where port is the value specified by -Dcom.sun.management.jmxremote.port? Thanks, Michele Mikolaj Rydzewski wrote: > Michele Mazzucco wrote: >> I understand this. What I don't understand is, how can I access (inside >> a web application or program) the mbeans exposed by another web >> application? Do you have any chunk of code to show me? >> > If you want to access another webapp's mbeans (but running in the same > Tomcat instance) you simply use > ManagementFactory.getPlatformMBeanServer() and then query for other mbeans. > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]