Announcement Announcement Module
Collapse
No announcement yet.
JMXMP and the MBeanServerConnectionFactoryBean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JMXMP and the MBeanServerConnectionFactoryBean

    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....


    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" />
    Spring complains there is a type mismatch where it cannot convert javax.management.remote.generic.GenericConnector$R emoteMBeanServerConnection to a MBeanServer.

    Anybody have any luck with this kind of config? Thanks
Working...
X