Announcement Announcement Module
Collapse
No announcement yet.
spring mbean attributes not showing actual values on jboss jmx-console Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 09:26 AM.

  • #2
    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

    Comment

    Working...
    X