Edit standalone.xml while running WildFly 8.2

情到浓时终转凉″ 提交于 2019-12-12 03:22:08

问题


I have a WildFly running and an application that allow to edit database connection (ds.xml), that connection use security domain. When WildFly stopped it's work!

When WildFly is running, I can write standalone.xml and save it but automatically the standalone.xml reverts to its previous state.

Have a way to a external app to edit the standalone.xml with WildFly running?


回答1:


WildFly will rewrite the configuration if there are changes to the management model. It's advised not to directly change the XML configuration file. If you need to change a setting it's best to use CLI or the web console.

Some changes don't require a reload, some do. So in some cases you can make changes at runtime and see them immediately.

If you're editing a *-ds.xml file in a deployment, then that deployment will need to be redeployed.



来源:https://stackoverflow.com/questions/34596609/edit-standalone-xml-while-running-wildfly-8-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!