Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-5293

EJB3 method invocation statistics exposed incorrectly through JMX

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 9.0.1.Final
    • EJB, JMX
    • None
    • Hide

      Enable JMX like this:

      <subsystem xmlns="urn:jboss:domain:jmx:1.3">
      <expose-resolved-model/>
      </subsystem>

      Inspect "methods" attribute of a deployed EJB3 session, for example object

      jboss.as:deployment=example.ear,subdeployment=example-beans.jar,subsystem=ejb3,stateless-session-bean=ExampleBean

      and the attribute is simply:

      javax.management.openmbean.CompositeDataSupport(compositeType=javax.management.openmbean.CompositeType(name=Complex type,items=((itemName=execution-time,itemType=javax.management.openmbean.SimpleType(name=java.lang.Long)),(itemName=invocations,itemType=javax.management.openmbean.SimpleType(name=java.lang.Long)),(itemName=wait-time,itemType=javax.management.openmbean.SimpleType(name=java.lang.Long)))),contents=

      {execution-time=null, invocations=null, wait-time=null}

      )

      Show
      Enable JMX like this: <subsystem xmlns="urn:jboss:domain:jmx:1.3"> <expose-resolved-model/> </subsystem> Inspect "methods" attribute of a deployed EJB3 session, for example object jboss.as:deployment=example.ear,subdeployment=example-beans.jar,subsystem=ejb3,stateless-session-bean=ExampleBean and the attribute is simply: javax.management.openmbean.CompositeDataSupport(compositeType=javax.management.openmbean.CompositeType(name=Complex type,items=((itemName=execution-time,itemType=javax.management.openmbean.SimpleType(name=java.lang.Long)),(itemName=invocations,itemType=javax.management.openmbean.SimpleType(name=java.lang.Long)),(itemName=wait-time,itemType=javax.management.openmbean.SimpleType(name=java.lang.Long)))),contents= {execution-time=null, invocations=null, wait-time=null} )

    Description

      EJB3 method invocation statistics, that is the "methods" attribute in an EJB3 session JMX object is exposed as CompositeDataSupport object that has the expected keys ("execution-time", and so on), but

      • the values for the keys are always null
      • there is only a single CompositeDataSupport object even when the session has several methods
      • the method name is not available.

      Possibly the invocation statistics should be exposed as an array of CompositeDataSupport objects where one of the keys is the method name.

      Attachments

        Activity

          People

            kkhan1@redhat.com Kabir Khan
            armihu Arto Huusko (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: