在运行 WildFly 8.2 时编辑 standalone.xml [英] Edit standalone.xml while running WildFly 8.2

查看:56
本文介绍了在运行 WildFly 8.2 时编辑 standalone.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个正在运行的 WildFly 和一个允许编辑数据库连接 (ds.xml) 的应用程序,该连接使用安全域.当 WildFly 停止时,它起作用了!

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!

当 WildFly 运行时,我可以编写 standalone.xml 并保存它,但 standalone.xml 会自动恢复到以前的状态.

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

有没有办法在运行 WildFly 的情况下通过外部应用编辑 standalone.xml?

推荐答案

如果管理模型发生变化,WildFly 将重写配置.建议不要直接更改 XML 配置文件.如果您需要更改设置,最好使用 CLI 或 Web 控制台.

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.

如果您正在编辑部署中的 *-ds.xml 文件,则需要重新部署该部署.

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

这篇关于在运行 WildFly 8.2 时编辑 standalone.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆