]
Lin Gao moved WFLY-7237 to JBJCA-1334:
--------------------------------------
Project: IronJacamar (was: WildFly)
Key: JBJCA-1334 (was: WFLY-7237)
Workflow: classic default workflow (was: GIT Pull Request workflow )
Component/s: Deployer
(was: JCA)
Add DataSource to ManagementRepository only after deployed
successfully
-----------------------------------------------------------------------
Key: JBJCA-1334
URL:
https://issues.jboss.org/browse/JBJCA-1334
Project: IronJacamar
Issue Type: Bug
Components: Deployer
Reporter: Lin Gao
Assignee: Jesper Pedersen
When a data-source was failed to be added either because of missing
connection-properties:
{code:}
/subsystem=datasources/data-source=XXX:add(jndi-name=java:/XXX,
datasource-class=XXX,driver-name=h2)
{code}
or missing of connection-url:
{code:}
/subsystem=datasources/data-source=XXX:add(jndi-name=java:/XXX, driver-name=h2)
{code}
, it can be added by correcting the information, like:
{code:}
[standalone@localhost:9990 /]
/subsystem=datasources/data-source=XXX:add(jndi-name=java:/XXX,
driver-name=h2,connection-url="jdbc:h2:test")
{"outcome" => "success"}
{code}
But the {{test-connection-in-pool()}} operation failed with {{IllegalStateException}} of
the new created data-source.