我需要更新列出 Tomcat 中 amf channel 的 flex/services-config.xml,而无需重新启动 Tomcat 或使用管理器。
这可能吗?是否有一些命令可以用来重新加载应用程序而无需重新启动 Tomcat。
我正在使用 Tomcat 6
谢谢
戴夫
最佳答案
在 services-config.xml
中,您可以设置自动重新部署间隔来查找配置更改:
<system>
<redeploy>
<enabled>true</enabled>
<!-- Change to fit your requirements -->
<watch-interval>20</watch-interval>
<watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file>
<watch-file>{context.root}/WEB-INF/flex/proxy-config.xml</watch-file>
<watch-file>{context.root}/WEB-INF/flex/remoting-config.xml</watch-file>
<watch-file>{context.root}/WEB-INF/flex/messaging-config.xml</watch-file>
<watch-file>{context.root}/WEB-INF/flex/data-management-config.xml</watch-file>
<touch-file>{context.root}/WEB-INF/web.xml</touch-file>
</redeploy>
</system>
不过,您必须至少手动重新部署一次才能生效
关于apache-flex - Tomcat 和更新的 flex services-config.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10584478/