Hello,
I'm new to spring and trying to export some MBeans.
My application is running as Servlet in tomcat 5.5. In the net I've found some examples how to use jmx in spring:
Code:<!--+ | JMX +--> <bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean"/> <bean id="serverConnector" class="org.springframework.jmx.support.ConnectorServerFactoryBean"> <property name="objectName" value="connector:name=rmi"/> <property name="serviceUrl" value="service:jmx:rmi://localhost/jndi/rmi://localhost:9099/myconnector"/> </bean> <bean id="helloBean" class="jmx.HelloWorldMBean" />if i start tomcat and the jconsole I don't see any beans. When I start tomcat with -Dcom.sun.management.jmxremote.port=1099Code:package jmx; public class HelloWorldMBean implements IHelloWorldMBean { public String getHello() { return "hello world"; } }
-Dcom.sun.management.jmxremote.authenticate=false I see the server for tomcat. But my configuration should start a seperate one?
Or is it wrong when I insert "service:jmx:rmi://localhost/jndi/rmi://localhost:9099/myconnector" on the third tab jconsole to open the connection?
Thanks for your help
Mike


Reply With Quote