[jboss-jira] [JBoss JIRA] (WFLY-1893) Restarting server with a disabled DS enables the DS

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Mon Nov 4 05:09:03 EST 2013


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

RH Bugzilla Integration commented on WFLY-1893:
-----------------------------------------------

Ivo Studensky <istudens at redhat.com> changed the Status of [bug 952277|https://bugzilla.redhat.com/show_bug.cgi?id=952277] from MODIFIED to ON_QA
                
> Restarting server with a disabled DS enables the DS
> ---------------------------------------------------
>
>                 Key: WFLY-1893
>                 URL: https://issues.jboss.org/browse/WFLY-1893
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JCA
>            Reporter: Kabir Khan
>            Assignee: Stefano Maestri
>
> See https://issues.jboss.org/browse/WFLY-1874
> If you add a datasource with 
> subsystem=datasources/data-source=Test:add(jndi-name=java:/Test,jta=false,use-ccm=false,connection-url=url,driver-class=org.h2.Driver,driver-name=h2,user-name=user,password=pass,validate-on-match=false,background-validation=false,share-prepared-statements=false)
> it shows up as not enabled/undefined:
> {code}
> [standalone at localhost:9990 /] /subsystem=datasources/data-source=Test:read-resource{                                                                                                                                         "outcome" => "success",
>     "result" => {
> ...
>         "enabled" => false,
> {code}
> {code}
> [standalone at localhost:9990 /] /subsystem=datasources/data-source=Test:read-resource(include-defaults=false)
> {
>     "outcome" => "success",
>     "result" => {
> ...        "enabled" => undefined,
> {code}
> This is persisted as 
> {code}
>                <datasource jta="false" jndi-name="java:/Test" pool-name="Test" enabled="false" use-ccm="false">
>                     <connection-url>url</connection-url>
>                     <driver-class>org.h2.Driver</driver-class>
>                     <driver>h2</driver>
>                     <security>
>                         <user-name>user</user-name>
>                         <password>pass</password>
>                     </security>
>                     <validation>
>                         <validate-on-match>false</validate-on-match>
>                         <background-validation>false</background-validation>
>                     </validation>
>                     <statement>
>                         <share-prepared-statements>false</share-prepared-statements>
>                     </statement>
>                 </datasource>
> {code}
> Now if you stop and start the server again you end up with enabled=true.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list