]
Harald Pehl commented on WFLY-4750:
-----------------------------------
You're right, {{:test-connection-in-pool}} on a disabled datasource makes no sense
(sorry for the spam).
When a datasource is created with enabled=false, the
:test-connection-in-pool op fails
--------------------------------------------------------------------------------------
Key: WFLY-4750
URL:
https://issues.jboss.org/browse/WFLY-4750
Project: WildFly
Issue Type: Bug
Components: JCA
Reporter: Harald Pehl
Assignee: Jesper Pedersen
When a new datasource is created with {{enabled=false}}, the {{:test-connection-in-pool}}
operation fails. You can reproduce the error using the following CLI commands:
*Enabled by default*
{code}
[standalone@localhost:9990 /]
/subsystem=datasources/data-source=foo:add(jndi-name=java:/foo,driver-name=h2,connection-url=jdbc:h2:mem:foo)
{"outcome" => "success"}
[standalone@localhost:9990 /]
/subsystem=datasources/data-source=foo:test-connection-in-pool
{
"outcome" => "success",
"result" => [true]
}
{code}
*Disabled by default*
{code}
[standalone@localhost:9990 /]
/subsystem=datasources/data-source=foo:add(jndi-name=java:/foo,driver-name=h2,connection-url=jdbc:h2:mem:foo,enabled=false)
{"outcome" => "success"}
[standalone@localhost:9990 /]
/subsystem=datasources/data-source=foo:test-connection-in-pool
{
"outcome" => "failed",
"failure-description" => "WFLYJCA0040: failed to invoke operation:
WFLYJCA0042: failed to match pool. Check JndiName: java:/foo",
"rolled-back" => true
}
{code}