-
1. Re: standalone.xml datasource enabled-flag are overwritten after second server restart
sfcoy Nov 7, 2012 7:21 AM (in response to nimo22)Are you editing the standalone.xml while the server is running? This will cause inconsistent results.
Try using the CLI:
{code:bash}[standalone@localhost:9999 /] data-source enable --name=pool-one{code}
...and as I entered this I noticed that your pool-names are all the same. I think these need to be unique, which may be the cause of your problem.
-
2. Re: standalone.xml datasource enabled-flag are overwritten after second server restart
nimo22 Nov 7, 2012 9:49 AM (in response to sfcoy)For each datasource, I have a different pool-name.
I stopped the server and edit the standalone.xml as decribed above (with enabled="false"-Property)
I start the server and looked at the log-file: datasources with enabled="false" are not loaded, which is correctly.
However, when I stop the server the second time and restart it again, then enabled="false" were all deleted - but NOT by myself. Hence, the former disabled datasources are enabled and bounded.
You can try it for yourself:
- Stop the server, disable a datasource.
- Start the server. (the first time, it will be correctly set).
- Then again, stop the server and start it again (without editing standalone.xml).
->You will see, that the datasource is now bounded again. Why is that so?
-
3. Re: standalone.xml datasource enabled-flag are overwritten after second server restart
jaikiran Nov 7, 2012 9:54 AM (in response to nimo22)I think this might have been fixed in upstream version. Please try against latest nightly build.