-
Jul 23rd, 2008, 11:18 AM
#1
Injectiong ObjectName
Ho do i inject the objectname property of org.springframework.jmx.access.MBeanProxyFactoryBe an
example:
<bean id="remoteRantServiceMBean"
class="org.springframework.jmx.access.MBeanProxyFa ctoryBean">
<property name="objectName" value="rantz:name=RantService" />
<property name="server" ref="mBeanServerClient" />
</bean>
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
#2
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).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules