Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
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