Hi Peter, right, that's the response to my question :). Now, I've got a web application exposing some mbeans. How can I access them from outside (another web application deployed on the same machine, for example)?
Michele Peter Rossbach wrote: > HI Michele, > > please, read the sun jmx docs. > > The default jmx server from java 5 starts a rmi registry and starts a > jmx server socket. > Currently the jmx server socket port change with every start from your > jvm. You can't > control the port or binding an ip address from command line. Please, > read the details at jmx api javadocs (javax.management.remote). > > Peter > > > Am 14.09.2006 um 18:23 schrieb Michele Mazzucco: > >> 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] >> >> > > > --------------------------------------------------------------------- > 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]