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.
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
> 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:
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).
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.