Jboss standalone-full.xml file getting overridden while restart

jboss

I have modified the standalone-full.xml while jboss is running. And then I have restarted the jboss instance. My change is not available in the file (standalone-full.xml) after restarting. Seems, previous version (before modification) got restored.
But sometimes, changes are reflecting after restarting.
Its confusing. Any Idea, what is happening while restart?

Best Answer

I have modified the standalone-full.xml while jboss is running.

JBoss actively manages the server configuration, and rewrites the XML based on events that take place during its operation. I am assuming that you made these modifications by editing the XML directly using a text editor. While you can do this with little impact while the server is offline, doing this while the server is running yields unpredictable results, as you have found.

You can definitely make changes to the server's configuration while it is running, but for it to be consistently applied you should use the web management console (http://localhost:8080/console) or the CLI (${JBOSS_HOME}/bin/jboss-cli.sh). Making your changes this way, you can even get feedback on whether your change will require the restart of JBoss.

Related Topic