Ok, so trying to get a remote JMX server set up using JMXMP. Server starts OK and all looks good. Try to export beans to JMX and app dies during spring start up. Here is the important part of the config....
Spring complains there is a type mismatch where it cannot convert javax.management.remote.generic.GenericConnector$R emoteMBeanServerConnection to a MBeanServer.Code:<bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerConnectionFactoryBean"> <property name="serviceUrl" value="service:jmx:jmxmp://localhost:9875"/> </bean> <bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false"> <property name="beans"> <map> <entry key="bean:name=controller" value-ref="appController"/> </map> </property> <property name="server" ref="mbeanServer"/> </bean> <bean id="appController" class="my.package.stuff.AppController" />
Anybody have any luck with this kind of config? Thanks


Reply With Quote