I'm using Spring 1.2.7, Tomcat 5.5.16, & JDK 1.5. I start up tomcat with these options:
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=8999
-Dcom.sun.management.jmxremote
My spring JMX conf looks like this (from the reference docs):
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporte r">
<property name="beans">
<map>
<entry key="bean:name=testBean1" value-ref="testBean"/>
</map>
</property>
</bean>
<bean id="testBean" class="org.springframework.jmx.JmxTestBean">
<property name="name" value="TEST"/>
<property name="age" value="100"/>
</bean>
For MC4J, I use the Tomcat option with this:
service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi
I connect just fine, but I don't see my spring beans.
Our target platform is WebSphere but we use Tomcat for development. I'd like to come up with something that will work on both. It's ok if I have two separate confs for each server.
Thanks to anyone who can help.
-Michael


Reply With Quote