Results 1 to 2 of 2

Thread: spring mbean attributes not showing actual values on jboss jmx-console

  1. #1
    Join Date
    Aug 2006
    Posts
    7

    Default spring mbean attributes not showing actual values on jboss jmx-console

    I am using spring jmx functionality and deploying my application in jboss. Everything works fine except the jboss jmx console is not able to show me the values for the attributes of the mbean. It show default values like null for string, false for boolean, etc.

    When I invoke an operation on that mbean it gets correct values. Any idea what is the issue that its not able to show the values on jmx-console.

    Normal mbeans .i.e. not spring are fine in jboss.

    Spring version is 1.2.8, jdk 1.4.2, jboss 3.2.3 aqnd OS linux.

    <beans>
    <bean id="exporter" class="org.springframework.jmx.export.MBeanExporte r">
    <property name="beans">
    <map>
    <entry key="user.judith.xsell:service=JudithXSellManagerC onfig">
    <ref bean="xsellConfiguration"/>
    </entry>
    </map>
    </property>
    </bean>
    </beans>
    Last edited by bbhangale; Sep 1st, 2006 at 08:26 AM.

  2. #2
    Join Date
    Aug 2006
    Posts
    129

    Default

    with jdk 5 it works fine,
    using mx4j under 1.4 shows correct values :
    extend mx4j.AbstractDynamicMBean and override what you need :
    getMBeanDescription, createMBeanAttributeInfo(), createMBeanOperationInfo()

    with mx4j you don't even need an interface when using jboss-service.xml

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •