0 Replies Latest reply on Nov 1, 2011 5:43 AM by zzpprk

    MBeans under JBoss

    zzpprk

      Hello again

       

      I successfully wrote an MBean and got it to deploy just fine on my,local machine running Tomcat. I can actually see and use it with JConsole. When I deploy the same WAR file on JBoss and connect to JBoss using JConsole, I cannot see my MBean!

       

      My guess is that I forgot something but I cannot think what! Can any of you guys help?

       

      Below are some details.

       

      My MBean class implements javax.management.DynamicMBean and javax.servlet.ServletContextListener.

       

      I added the following to my web,xml file.

       

      <listener>

           <listener-class>package.class</listener-class>

      </listener>

       

      Do I need a similar entry somewhere else for JBoss?

       

      Regards

       

      Patrick