Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1517

make sure flush connection operations work for non-java context bound ds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.Beta1
    • None
    • JCA
    • None

    Description

      Working on the CLI I found flush connection operations don't work for datasources not bound in the java: context. Although, it's not the latest JCA code in my branch and needs checking against the latest one.

      This doesn't work:

      [standalone@localhost:9999 /] data-source add --jndi-name=myds --driver-name=h2 --pool-name=myds --connection-url=curl
      [standalone@localhost:9999 /] data-source flush-idle-connection-in-pool --jndi-name=myds
      failed to invoke operation: failed to match pool. Check JndiName: myds
      [standalone@localhost:9999 /] data-source remove --jndi-name=myds

      This does:

      [standalone@localhost:9999 /] data-source add --jndi-name=myds --driver-name=h2 --pool-name=myds --connection-url=curl --use-java-context=true
      [standalone@localhost:9999 /] flush-idle-connection-in-pool --jndi-name=myds
      [standalone@localhost:9999 /] remove --jndi-name=myds

      Attachments

        Activity

          People

            smaestri@redhat.com Stefano Maestri
            olubyans@redhat.com Alexey Loubyansky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: