5 Replies Latest reply on Jul 21, 2010 9:14 AM by ssroy73

    EJB3 monitoring in JOPR

    ssroy73

      Hi,

       

      While using JOPR 2.3.1, from template screen, I noticed that we can only monitor EJB 1.x/EJB 2.x using JOPR. Does this mean there is no way to monitor EJB 3 using JOPR.

       

      Thanks for your help.

       

       

      Best Regards - Roy

        • 1. Re: EJB3 monitoring in JOPR
          mazz

          I'll assume you want to monitor EJB3s running in a JBossAS server. As I understand it (which I am willing to be called out if I'm wrong :), the JBoss EJB3 implementation today does not expose any metrics, so we can't monitor what has no monitoring data.

           

          If you know of any metrics exposed by the EJB3 implementation, let us know.

           

          In the meantime, you can use the Hibernate plugin to monitor the Hibernate data that is being collected behind your EJB3/JPA entities.

          • 2. Re: EJB3 monitoring in JOPR
            mazz

            I'm an idiot. I'm totally wrong. See attached snapshot - we are even monitoring EJB3 session beans in our RHQ server resource. You can do this in your apps too.

            ejb3-session-beans.png

            • 3. Re: EJB3 monitoring in JOPR
              ssroy73

              Thanks a lot John for the help.

               

              I could see the EJB3 session bean as you have shown in the snapshot.

               

              When I view the template screen, I can see option for EJB3 Session bean and EJB 1.x/2.x for session bean, MDB, Entity bean.

               

              Does this mean I can't view the metrics for EJB 3 MDB and Entity beans. We are using EJB 3 MDB in our application.

               

              Thanks again for your help.

               

              Rgds - Roy

              • 4. Re: EJB3 monitoring in JOPR
                mazz

                >  Does this mean I can't view the metrics for EJB 3 MDB and Entity beans. We are using EJB 3 MDB in our application.

                 

                You can look at the jboss plugin's descriptor to see what resource types it supports:

                 

                http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=blob;f=modules/plugins/jboss-as/src/main/resources/META-INF/rhq-plugin.xml;h=b3ea3f524636400dadc95d43b3abcde2912d5439;hb=master

                 

                Specifically, it has these related to EJB3:

                 

                   <service name="EJB3 Session Bean" ...

                   <service name="EJB3 Entity Tree Cache" ...

                   <service name="EJB3 Entity Tree Cache Interceptor" ...

                 

                And of course you have the Hibernate plugin that can monitor the "stuff" under the EJB3/JPA entities.

                 

                I do not believe the JBossAS 4.2.x EJB3 implementation provides any EJB3 MDB management support.

                 

                If you go to your JBossAS instance's JMX console and poke around, you'll see all the EJB3 related MBeans (and their associated attributes, aka metrics). If you don't see an EJB3 MDB MBean, then we cannot report metrics on it because the app server itself isn't spitting any metrics out (i.e. we can't report on data that we can't get). If you DO see EJB3 MDB MBeans, let us know (but IIRC there isn't any).

                • 5. Re: EJB3 monitoring in JOPR
                  ssroy73

                  Thanks a lot John for help.

                   

                  You are correct. We are using JBoss 4.2.3. I checked using jmx-console and there is no metrics for MDB.

                   

                  Thanks again.

                   

                  Best Regards,

                   

                   

                  Roy