]
shailendra singh edited comment on WFLY-7129 at 9/16/16 2:51 PM:
-----------------------------------------------------------------
possible fix
Removing XA Datasources via CLI OR DMR does not de-register it from
the context without reload.
-----------------------------------------------------------------------------------------------
Key: WFLY-7129
URL:
https://issues.jboss.org/browse/WFLY-7129
Project: WildFly
Issue Type: Bug
Components: Domain Management, JCA
Affects Versions: 10.1.0.Final
Reporter: shailendra singh
Assignee: Brian Stansberry
Priority: Minor
Below is the result of add .. remove ..add operation of XADatasource .
1. Add - OK
{code:java}
[domain@localhost:9990 /]
./profile=default/subsystem=datasources/xa-data-source=TestXADataSource:add(jndi-name=java\:jboss\/datasources\/oracleXaDatasource,driver-name=oracle-driver.jar)
{
"outcome" => "success",
"result" => undefined,
"server-groups" => undefined
}
{code}
2. Remove - OK
{code:java}
[domain@localhost:9990 /]
./profile=default/subsystem=datasources/xa-data-source=TestXADataSource:remove()
{
"outcome" => "success",
"result" => undefined,
"server-groups" => undefined
}
{code}
3. Add - Error is thrown
{code:java}
[domain@localhost:9990 /]
./profile=default/subsystem=datasources/xa-data-source=TestXADataSource:add(jndi-name=java\:jboss\/datasources\/oracleXaDatasource,driver-name=oracle-driver.jar)
{
"outcome" => "failed",
"failure-description" => {"domain-failure-description" =>
"WFLYCTL0158: Operation handler failed: java.lang.IllegalStateException: WFLYCTL0363:
Capability 'org.wildfly.data-source.TestXADataSource' is already registered in
context 'profile=default'."},
"rolled-back" => true
}
{code}