]
RH Bugzilla Integration commented on WFLY-1893:
-----------------------------------------------
Radim Hatlapatka <rhatlapa(a)redhat.com> changed the Status of [bug
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@localhost:9990 /] /subsystem=datasources/data-source=Test:read-resource{
"outcome" => "success",
"result" => {
...
"enabled" => false,
{code}
{code}
[standalone@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: