Details

    • Estimated Difficulty:
      Low
    • Similar Issues:
      Show 10 results 

      Description

      This would allow us to list the deployed EJB3 entities as Jopr Resources even when Hibernate statistics are not enabled in the AS instance.

        Gliffy Diagrams

          Activity

          Show
          alrubinger Andrew Rubinger added a comment - What do we need exposed? Any desired behaviour should be reflected in: http://anonsvn.jboss.org/repos/jbossas/branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/test/Ejb3MetricsUnitTestCase.java
          Hide
          ips Ian Springer added a comment -

          Well the minimum would just be one ManagedObject for each entity bean with a 'name' property whose value is the EJB's name. As for metrics, I'm not sure what's available. If the Hibernate stats are not turned on, are there still any other metrics exposed by the EJB3 container for entity beans?

          Show
          ips Ian Springer added a comment - Well the minimum would just be one ManagedObject for each entity bean with a 'name' property whose value is the EJB's name. As for metrics, I'm not sure what's available. If the Hibernate stats are not turned on, are there still any other metrics exposed by the EJB3 container for entity beans?
          Hide
          ips Ian Springer added a comment -

          I've deployed an EJB3 entity bean, and the corresponding MBean in the jmx-console (jboss.j2ee:jar=entity-test.jar,name=EntityTestBean,service=EJB3) contains the following metrics:

          CreateCount R int MBean Attribute.
          InvokeStats R org.jboss.ejb3.statistics.InvocationStatistics MBean Attribute.
          CurrentSize R int MBean Attribute.
          RemoveCount R int MBean Attribute.
          MaxSize R int MBean Attribute.
          AvailableCount R int MBean Attribute.

          Can we expose these same metrics via the Entity Bean ManagedObject?

          Show
          ips Ian Springer added a comment - I've deployed an EJB3 entity bean, and the corresponding MBean in the jmx-console (jboss.j2ee:jar=entity-test.jar,name=EntityTestBean,service=EJB3) contains the following metrics: CreateCount R int MBean Attribute. InvokeStats R org.jboss.ejb3.statistics.InvocationStatistics MBean Attribute. CurrentSize R int MBean Attribute. RemoveCount R int MBean Attribute. MaxSize R int MBean Attribute. AvailableCount R int MBean Attribute. Can we expose these same metrics via the Entity Bean ManagedObject?
          Hide
          alrubinger Andrew Rubinger added a comment -

          Are you sure EntityTestBean is an entity, not some SLSB used to test entities? Because these metrics make no sense for entities; they're not invoked, we don't track create counts, etc.

          Show
          alrubinger Andrew Rubinger added a comment - Are you sure EntityTestBean is an entity, not some SLSB used to test entities? Because these metrics make no sense for entities; they're not invoked, we don't track create counts, etc.
          Hide
          jason.greene Jason Greene added a comment -

          There are no JMX entries for EJB3 entities, since they are not managed by the container. I think hibernate stats is really what you are after, that is the only part of the system that knows what an entity is.

          Show
          jason.greene Jason Greene added a comment - There are no JMX entries for EJB3 entities, since they are not managed by the container. I think hibernate stats is really what you are after, that is the only part of the system that knows what an entity is.
          Hide
          ips Ian Springer added a comment -

          Yeah, my bad. EntityTestBean is indeed an SLSB. Jason, is it possible for you to use some Hibernate API to obtain the list of deployed entities and their associated deployments?

          Show
          ips Ian Springer added a comment - Yeah, my bad. EntityTestBean is indeed an SLSB. Jason, is it possible for you to use some Hibernate API to obtain the list of deployed entities and their associated deployments?

            People

            • Assignee:
              alrubinger Andrew Rubinger
              Reporter:
              ips Ian Springer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development