I'm sorry Peter, but you didn't reply to my questions ;): with the out of the box configuration, what happens if I want to connect this way:
JMXServiceURL url = new JMXServiceURL( "service:jmx:rmi:///jndi/rmi://localhost:9999/server"); JMXConnector jmxc = JMXConnectorFactory.connect(url, null); what should I punt instead of "service:jmx...."? Does tomcat run a rmi registry somewhere? If not, why can I access the MBeans exposed by tomcat, even from remote nodes (from the admin console)?, should I start a rmiregistry in my web application? If yes, which port is it used? Thanks, Michele Peter Rossbach wrote: > Hi, > > Am 14.09.2006 um 16:25 schrieb Michele Mazzucco: > >> Thanks Peter. >> >> Peter Rossbach wrote: >>> Hi, >>> >>> I don't know about this experiment, but it seems not finished. Please, >>> use sun jdk command line args to start your jmx adapter. >> >> I though tomcat used mx4j. >> > Only with JDK 1.4. See JDK 1.4 Compatability package at tomcat 5.5 > donwload page. > >>> One of the strange things of the current Java 5 JVM is: You can only set >>> the naming port and not the real communication port :-( >>> This is obviously bad for people that use a firewall. >>> >>> http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html#properties >>> >>> >>> With JMX API you can set the communication port and socket address. >>> >>> Peter >>> >>> >> Michele >> >>> Am 14.09.2006 um 12:41 schrieb Michele Mazzucco: >>> >>>> Hi Peter, >>>> >>>> thanks. But what about "out of the box" configuration?, the >>>> org.apache.tomcat.servlets.jmxremote.JmxRemoteServlet creates a rmi >>>> registry on port 1099 and a jmx service url at >>>> service:jmx:rmi://rmiHost/jndi/rmi://localhost:1099/jndiPath. So the >>>> question is, is rmi the default jmx protocol? >>>> >>>> Thanks, >>>> Michele >>>> >>>> Peter Rossbach wrote: >>>>> Hi, >>>>> please read the docs >>>>> >>>>> http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html >>>>> >>>>> Regards >>>>> Peter >>>>> >>>>> >>>>> >>>>> Am 14.09.2006 um 11:23 schrieb Michele Mazzucco: >>>>> >>>>>> Hi all, >>>>>> >>>>>> which kind of JMX connector does tomcat uses, rmi? If it is rmi, >>>>>> which >>>>>> port is it used? In which class is the JMX agent started? >>>>>> >>>>>> Thanks, >>>>>> Michele >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> To start a new topic, e-mail: users@tomcat.apache.org >>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> --------------------------------------------------------------------- >>>> To start a new topic, e-mail: users@tomcat.apache.org >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>> >>>> >>> >>> >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]