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

Unable to add cached-connection-manager after removing it once

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR11
    • 7.1.0.DR4
    • JCA
    • None
    • Hide

      1. Start WildFly
      2. Execute the following CLI:

      /subsystem=jca/cached-connection-manager=cached-connection-manager:remove
      :reload
      /subsystem=jca/cached-connection-manager=cached-connection-manager:add  
      
      Show
      1. Start WildFly 2. Execute the following CLI: /subsystem=jca/cached-connection-manager=cached-connection-manager:remove :reload /subsystem=jca/cached-connection-manager=cached-connection-manager:add

      <cached-connection-manager> is enabled in jca subsystem by default:

          <subsystem xmlns="urn:jboss:domain:jca:1.1">
              ...
              <cached-connection-manager />
          </subsystem> 
      

      However, it is unable to re-enable <cached-connection-manager> once it is disabled. CLI command fails to add it due to duplicate resource.

      [standalone@localhost:9990 /] /subsystem=jca/cached-connection-manager=cached-connection-manager:remove
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      [standalone@localhost:9990 /] :reload
      {
          "outcome" => "success",
          "result" => undefined
      }
      [standalone@localhost:9990 /] /subsystem=jca/cached-connection-manager=cached-connection-manager:add
      {
          "outcome" => "failed",
          "failure-description" => "JBAS014803: Duplicate resource [
          (\"subsystem\" => \"jca\"),
          (\"cached-connection-manager\" => \"cached-connection-manager\")
      ]",
          "rolled-back" => true
      }
      

              rhn-support-iweiss Ingo Weiss
              msimka@redhat.com Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Time Spent - 2 days Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - 2 days Remaining Estimate - 1 day
                  2d