Jul 23rd, 2008, 11:18 AM
Ho do i inject the objectname property of org.springframework.jmx.access.MBeanProxyFactoryBe an
<property name="objectName" value="rantz:name=RantService" />
<property name="server" ref="mBeanServerClient" />
i am getting an error:
Failed to convert property value of type [java.lang.String] to required type [javax.management.ObjectName] for property 'objectName';
Jul 27th, 2008, 12:19 PM
It Looks Right!
Your sample looks correct and does match what is shown in the Spring 2.5 Reference Manual. Can you provide more information related to the error? Perhaps the line above or below this line in the output can provide a clue. One thing to try is to make sure that you have your proxyInterface defined as well (shown in the Reference Manual, but not in your sample). An example of this is available at Remote JMX: With and Without Spring and Proxies (near the bottom and the XML uses Spring's p-namespace syntax, but it works the same).