Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-389

Enable multiple flush operations for connection definitions in resource adapters

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      Hide

      Setup:
      Clean EAP 6.2.2 with TRACE JCA logging on default standalone.xml and adding [1].

      1) Profile -> Subsystems -> Connectors -> Resource Adapters
      2) Select or View the desired Resource Adapter -> Connection Definition
      3) Select "Pool"
      4) Select "Flush"

      [1]
      <subsystem xmlns="urn:jboss:domain:resource-adapters:1.1">
      <resource-adapters>
      <resource-adapter id="gss.rar">
      <archive>
      gss.rar
      </archive>
      <transaction-support>XATransaction</transaction-support>
      <connection-definitions>
      <connection-definition class-name="org.redhat.gss.AcmeManagedConnectionFactory" jndi-name="java:jboss/eis/AcmeConnection" enabled="true" use-java-context="true" pool-name="AcmeConnection" use-ccm="true">
      <xa-pool>
      <min-pool-size>5</min-pool-size>
      <max-pool-size>10</max-pool-size>
      <prefill>true</prefill>
      <use-strict-min>true</use-strict-min>
      <flush-strategy>FailingConnectionOnly</flush-strategy>
      <pad-xid>false</pad-xid>
      <wrap-xa-resource>true</wrap-xa-resource>
      </xa-pool>
      <recovery no-recovery="true">
      <recover-credential>
      <user-name>user</user-name>
      <password>password</password>
      </recover-credential>
      </recovery>
      </connection-definition>
      </connection-definitions>
      <admin-objects>
      <admin-object class-name="org.redhat.gss.AcmeAdminObjectImpl" jndi-name="java:jboss/eis/ao/AcmeAdminObjectImpl" enabled="true" use-java-context="true" pool-name="AcmeAdminObjectImpl"/>
      </admin-objects>
      </resource-adapter>
      </resource-adapters>
      </subsystem>

      Show
      Setup: Clean EAP 6.2.2 with TRACE JCA logging on default standalone.xml and adding [1] . 1) Profile -> Subsystems -> Connectors -> Resource Adapters 2) Select or View the desired Resource Adapter -> Connection Definition 3) Select "Pool" 4) Select "Flush" [1] <subsystem xmlns="urn:jboss:domain:resource-adapters:1.1"> <resource-adapters> <resource-adapter id="gss.rar"> <archive> gss.rar </archive> <transaction-support>XATransaction</transaction-support> <connection-definitions> <connection-definition class-name="org.redhat.gss.AcmeManagedConnectionFactory" jndi-name="java:jboss/eis/AcmeConnection" enabled="true" use-java-context="true" pool-name="AcmeConnection" use-ccm="true"> <xa-pool> <min-pool-size>5</min-pool-size> <max-pool-size>10</max-pool-size> <prefill>true</prefill> <use-strict-min>true</use-strict-min> <flush-strategy>FailingConnectionOnly</flush-strategy> <pad-xid>false</pad-xid> <wrap-xa-resource>true</wrap-xa-resource> </xa-pool> <recovery no-recovery="true"> <recover-credential> <user-name>user</user-name> <password>password</password> </recover-credential> </recovery> </connection-definition> </connection-definitions> <admin-objects> <admin-object class-name="org.redhat.gss.AcmeAdminObjectImpl" jndi-name="java:jboss/eis/ao/AcmeAdminObjectImpl" enabled="true" use-java-context="true" pool-name="AcmeAdminObjectImpl"/> </admin-objects> </resource-adapter> </resource-adapters> </subsystem>

      Description

      The current call of flush(true) will also remove connections that are actively in use by a client. The behavior of destroying active connections may be desired additional functionality but should not be the default behavior for the flush.

      Offer all flush operations in the console. For WF these are:

      [standalone@localhost:9990 /] /subsystem=resource-adapters/resource-adapter=*/connection-definitions=*:read-operation-names
      {
          "outcome" => "success",
          "result" => [
              ...
              "flush-all-connection-in-pool",
              "flush-gracefully-connection-in-pool",
              "flush-idle-connection-in-pool",
              "flush-invalid-connection-in-pool",
              ...
          ]
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              harald.pehl Harald Pehl
              Reporter:
              jolee Johnathon Lee
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: