7 Replies Latest reply on Sep 25, 2013 5:35 AM by tsegismont

    JBoss EAP6 deployed web-app's custom Mbeans

    nandhakumar

      I am using JON 3.1.2( RHQ 4.4) on PostgreSQL 9.1. + JBoss-eap-6.0.1+Agent plugins ( rhq-jboss-as-7-plugin-4.4.0.JON312GA and my custom plugin)

      I have a custom plugin, by which I can monitor a standalone java application which started using the following java arguments,

      -Dcom.sun.management.jmxremote.port=19988

      -Dcom.sun.management.jmxremote.authenticate=false

      -Dcom.sun.management.jmxremote.ssl=false

      standalone app.png

       

      But when I create a web-app using the same MBeans and deployed in JBoss EAP 6.0, I can’t see its Matrix and operations.

      I am using a ServletContextListener implementation to register the static MBean to PlatformMbeanServer as shown below. This ServletListener is invoked using web.xml entries

      ServletContextListener.png

      I can see the custom Mbean and its metrics/operations using JConsole. But RHQ is not picking this with the custom plugin or rhq-jboss-as-7-plugin.

      Could you please help me to resolve this.

       

      Many thanks,