Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23780

[GSS](7.4.z) JBoss EAP fails to display statistics for a resource adapter using jndi-name without a prefix

    XMLWordPrintable

Details

    Description

      JBoss EAP does not show any statistics on a resource adapter with a missing JNDI context even if statistics-enabled = true.
      For example

      [standalone@pagz:9990 /] /subsystem=resource-adapters/resource-adapter=wmq-ra/connection-definitions=wmqCF:read-attribute(name=jndi-name)
      {
          "outcome" => "success",
          "result" => "/wmq/jms/cf/wmqCFXA"
      }
      

      Trying to show statistics fails

      [standalone@pagz:9990 /] /subsystem=resource-adapters/resource-adapter=wmq-ra/connection-definitions=wmqCF/statistics=pool:read-resource(recursive=true,include-defaults=true,include-runtime=true)
      Failed to get the list of the operation properties: "WFLYCTL0030: No resource definition is registered for address [
          ("subsystem" => "resource-adapters"),
          ("resource-adapter" => "wmq-ra"),
          ("connection-definitions" => "wmqCF"),
          ("statistics" => "pool")
      ]"
      

      But statistics are enabled

      [standalone@pagz:9990 /] /subsystem=resource-adapters/resource-adapter=wmq-ra:read-attribute(name=statistics-enabled)
      {
          "outcome" => "success",
          "result" => true
      }
      

      There are no errors in the log file.
      After changing connection JNDI name to *jndi-name="java:/wmq/jms/cf/wmqCFXA"*
      I can show statistics

      [standalone@pagz:9990 /] /subsystem=resource-adapters/resource-adapter=wmq-ra/connection-definitions=wmqCF/statistics=pool:read-resource(recursive=true,include-defaults=true,include-runtime=true)
      {
          "outcome" => "success",
          "result" => {
              "ActiveCount" => 0,
              "AvailableCount" => 29,
              "AverageBlockingTime" => 0L,
              "AverageCreationTime" => 0L,
              "AverageGetTime" => 0L,
              "AveragePoolTime" => 0L,
              "AverageUsageTime" => 0L,
              "BlockingFailureCount" => 0,
              "CreatedCount" => 0,
              "DestroyedCount" => 0,
              "IdleCount" => -1,
              "InUseCount" => 1,
              "MaxCreationTime" => 0L,
              "MaxGetTime" => 0L,
              "MaxPoolTime" => 0L,
              "MaxUsageTime" => 0L,
              "MaxUsedCount" => 1,
              "MaxWaitCount" => 0,
              "MaxWaitTime" => 0L,
              "TimedOut" => 0,
              "TotalBlockingTime" => 0L,
              "TotalCreationTime" => 0L,
              "TotalGetTime" => 0L,
              "TotalPoolTime" => 0L,
              "TotalUsageTime" => 0L,
              "WaitCount" => 0,
              "XACommitAverageTime" => 0L,
              "XACommitCount" => 0L,
              "XACommitMaxTime" => 0L,
              "XACommitTotalTime" => 0L,
              "XAEndAverageTime" => 0L,
              "XAEndCount" => 0L,
              "XAEndMaxTime" => 0L,
              "XAEndTotalTime" => 0L,
              "XAForgetAverageTime" => 0L,
              "XAForgetCount" => 0L,
              "XAForgetMaxTime" => 0L,
              "XAForgetTotalTime" => 0L,
              "XAPrepareAverageTime" => 0L,
              "XAPrepareCount" => 0L,
              "XAPrepareMaxTime" => 0L,
              "XAPrepareTotalTime" => 0L,
              "XARecoverAverageTime" => 0L,
              "XARecoverCount" => 0L,
              "XARecoverMaxTime" => 0L,
              "XARecoverTotalTime" => 0L,
              "XARollbackAverageTime" => 0L,
              "XARollbackCount" => 0L,
              "XARollbackMaxTime" => 0L,
              "XARollbackTotalTime" => 0L,
              "XAStartAverageTime" => 0L,
              "XAStartCount" => 0L,
              "XAStartMaxTime" => 0L,
              "XAStartTotalTime" => 0L,
              "statistics-enabled" => true
          }
      }
      

      Attachments

        1. wmq.jmsra.9.1.rar
          11.95 MB
        2. wmq-ra.cli
          7 kB

        Issue Links

          Activity

            People

              mpetrov@redhat.com Michal Petrov
              rhn-support-toross Tom Ross
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: