[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 14:52:00 EDT 2016


    [ https://issues.jboss.org/browse/WFLY-7129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13294711#comment-13294711 ] 

shailendra singh edited comment on WFLY-7129 at 9/16/16 2:51 PM:
-----------------------------------------------------------------

possible fix 
https://github.com/wildfly/wildfly/pull/9198


was (Author: rhn-support-shsingh):
possible fix 
https://issues.jboss.org/browse/WFLY-7129

> 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