Results 1 to 2 of 2

Thread: Injectiong ObjectName

  1. #1
    Join Date
    Jun 2008
    Posts
    23

    Default 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. #2

    Default 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
  •