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

Unable to configure resource adapter pool via Admin Console or CLI (online)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 11.0.0.Final, 12.0.0.Final
    • JCA
    • None
    • Hide

      sh jboss-cli.sh --connect

      cd /subsystem=resource-adapters/resource-adapter=hlrps-adapter.rar
      ./connection-definitions="HLR_1.msp":add(class-name=kapsch.resource.msp.jca.ManagedConnectionFactoryImpl, jndi-name="java:jboss/eis/hlr/msp/HLR_1")
      cd connection-definitions=HLR_1.msp
      :write-attribute(name=enabled, value=true)
      :write-attribute(name=connectable, value=false)
      :write-attribute(name=tracking, value=true)
      :write-attribute(name=use-java-context, value=true)
      :write-attribute(name=sharable, value=true)
      :write-attribute(name=enlistment, value=true)
      *:write-attribute(name=min-pool-size, value=0)
      :write-attribute(name=max-pool-size, value=1)
      :write-attribute(name=pool-prefill, value=false)
      :write-attribute(name=pool-use-strict-min, value=false)*
      :write-attribute(name=security-application, value=false)
      *:write-attribute(name=idle-timeout-minutes, value=1)
      :write-attribute(name=blocking-timeout-wait-millis, value=30000)*
      ./config-properties=EISProductName:add(value="HLR Server")
      ./config-properties=EISProductVersion:add(value="0")

      Show
      sh jboss-cli.sh --connect cd /subsystem=resource-adapters/resource-adapter=hlrps-adapter.rar ./connection-definitions="HLR_1.msp":add(class-name=kapsch.resource.msp.jca.ManagedConnectionFactoryImpl, jndi-name="java:jboss/eis/hlr/msp/HLR_1") cd connection-definitions=HLR_1.msp :write-attribute(name=enabled, value=true) :write-attribute(name=connectable, value=false) :write-attribute(name=tracking, value=true) :write-attribute(name=use-java-context, value=true) :write-attribute(name=sharable, value=true) :write-attribute(name=enlistment, value=true) *:write-attribute(name=min-pool-size, value=0) :write-attribute(name=max-pool-size, value=1) :write-attribute(name=pool-prefill, value=false) :write-attribute(name=pool-use-strict-min, value=false)* :write-attribute(name=security-application, value=false) *:write-attribute(name=idle-timeout-minutes, value=1) :write-attribute(name=blocking-timeout-wait-millis, value=30000)* ./config-properties=EISProductName:add(value="HLR Server") ./config-properties=EISProductVersion:add(value="0")
    • Hide

      configure in offline mode via CLI

      Show
      configure in offline mode via CLI

      It is not possible to set or modify attributes of a resource adapter pool. Problematic attributes are e.g. "min-pool-size", "max-pool-size", "pool-prefill", "idle-timeout-minutes", "blocking-timeout-wait-millis", ...

      We tried to configure this via Admin Console and also via CLI comands (where CLI is connected to the server) and got same result in both cases.

      Error

      Failed to modify resource [ ("subsystem" => "resource-adapters"), ("resource-adapter" => "hlrps-adapter.rar"), ("connection-definitions" => "HLR_1.msp") ]
      Unexpected HTTP response: 500

      Request
      {
          "operation" => "composite",
          "address" => [],
          "steps" => [{
              "address" => [
                  ("subsystem" => "resource-adapters"),
                  ("resource-adapter" => "hlrps-adapter.rar"),
                  ("connection-definitions" => "HLR_1.msp")
              ],
              "operation" => "write-attribute",
              "name" => "max-pool-size",
              "value" => 2
          }]
      }
      

      Response

      Internal Server Error
      {
          "outcome" => "failed",
          "result" => {"step-1" => {
              "outcome" => "failed",
              "failure-description" => "WFLYJCA0045: failed to set attribute: Index: 0, Size: 0",
              "rolled-back" => true
          }},
          "failure-description" => {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "WFLYJCA0045: failed to set attribute: Index: 0, Size: 0"}},
          "rolled-back" => true
      }
      

      We also tried to do this in offline mode via CLI and succeeded.

              smaestri@redhat.com Stefano Maestri
              winfriedwasser Winfried Wasser (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: