Announcement Announcement Module
Collapse
No announcement yet.
Injectiong ObjectName Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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';

  • #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).

    Comment

    Working...
    X