]
Sticky Bandit commented on AS7-2199:
------------------------------------
Using 10.0.0.Final and still getting this error.
connection related operations fail for the newly created datasources
--------------------------------------------------------------------
Key: AS7-2199
URL:
https://issues.jboss.org/browse/AS7-2199
Project: Application Server 7
Issue Type: Bug
Components: JCA
Affects Versions: 7.1.0.Alpha1
Reporter: Alexey Loubyansky
Assignee: Stefano Maestri
Fix For: 7.1.0.Beta1
[standalone@localhost:9999 /] data-source add --jndi-name=my --driver-name=h2
--connection-url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1 --pool-name=mypool
[standalone@localhost:9999 /] data-source flush-all-connection-in-pool --jndi-name=my
failed to invoke operation: failed to match pool. Check JndiName: my
[standalone@localhost:9999 /] data-source flush-idle-connection-in-pool --jndi-name=my
failed to invoke operation: failed to match pool. Check JndiName: my
[standalone@localhost:9999 /] data-source test-connection-in-pool --jndi-name=my
failed to invoke operation: failed to match pool. Check JndiName: my
Server's log
17:05:42,092 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread
1-1) JBAS010400: Bound data source [my]
17:05:46,977 ERROR [org.jboss.as.controller] (pool-1-thread-5) Operation
("flush-all-connection-in-pool") failed - address: ([
("subsystem" => "datasources"),
("data-source" => "my")
]) - failure description: "failed to invoke operation: failed to match pool. Check
JndiName: my"
17:06:05,056 ERROR [org.jboss.as.controller] (pool-1-thread-4) Operation
("flush-idle-connection-in-pool") failed - address: ([
("subsystem" => "datasources"),
("data-source" => "my")
]) - failure description: "failed to invoke operation: failed to match pool. Check
JndiName: my"
17:06:17,149 ERROR [org.jboss.as.controller] (pool-1-thread-3) Operation
("test-connection-in-pool") failed - address: ([
("subsystem" => "datasources"),
("data-source" => "my")
]) - failure description: "failed to invoke operation: failed to match pool. Check
JndiName: my"
If I restart the server, the commands succeed.