Results 1 to 3 of 3

Thread: JBoss 4.3 : Spring metrics & JVM metrics

  1. #1
    Join Date
    Jan 2006
    Posts
    10

    Default JBoss 4.3 : Spring metrics & JVM metrics

    Hi all,
    Thanks for all the help I got here, but I'm still stuck with the following problems : I can't have both the JVM metrics and the managed Spring metrics at the same time in AMS (cf http://forum.springsource.org/showthread.php?t=79454 for the full thread).

    It seems that when JMX remote is activated, Spring exports its metrics in the wrong MBean Server. It may be the way I plugged Spring in the JMX MBean server... this is my configuration :

    Code:
    	
    <bean id="mbeanServer" class="org.jboss.mx.util.MBeanServerLocator" factory-method="locateJBoss" />
    
    <bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
    	<property name="autodetect" value="true" />
    	<property name="server" ref="mbeanServer" />
    </bean>

  2. #2
    Join Date
    Jan 2006
    Posts
    10

    Default

    Ok just found out that this XML configuration is irrelevant, the instrumented version of Spring automatically exports itself to an MBeanServer.

    However when JMX remote is activated this is the one that is used instead of the JBoss' MBeanServer and thus AMS can't see my app

  3. #3
    Join Date
    Jan 2006
    Posts
    10

    Default

    Ok finally got it working but it feels like a ugly hack. Since instrumented Spring was exporting in the *first* MBeanServer it found (toyed with management.config but it didn't help), I configured JBoss to export its beans into the one from the JVM.

    => I only have 1 MBeanServer and it is used by JBoss thus I can have both the JVM and Spring stuff showing up in Hyperic.

Posting Permissions

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