[jboss-jira] [JBoss JIRA] (WFLY-7129) Removing XA Datasources via CLI OR DMR does not de-register it from the context without reload.
shailendra singh (JIRA)
issues at jboss.org
Fri Sep 16 13:40:00 EDT 2016
shailendra singh created WFLY-7129:
--------------------------------------
Summary: 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 at 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 at 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 at 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}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list