是否可以在不重新启动JSF中的服务器的情况下更新应用程序? [英] Is it possible to update the app without restarting the server in JSF?

查看:226
本文介绍了是否可以在不重新启动JSF中的服务器的情况下更新应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse 3.5,Tomcat 6,JSF 1.2和IceFaces 1.8.每当我更新应用程序中的任何文件时,都必须重新启动服务器以查看最新更改.如何在不重新启动服务器的情况下更新我的应用?

I'm working with Eclipse 3.5, Tomcat 6, JSF 1.2 and IceFaces 1.8. Whenever I update any file in my app, I have to restart the server to see the latest changes. How to update my app without restarting the server?

已经选择了服务器选项资源更改时自动发布".

The server option "Automatically publish when resource changes" is already selected.

更新:如果我更改了主文件,则可以立即看到更改.但是,如果更新<jsp:directive.include />标记中使用的任何文件,则必须重新启动服务器以检查更改,或使用伪造的更新(例如添加空白)来更新主文件.

Update: If I change the main file, the changes can be seen immediately. However, if I update any file used in a <jsp:directive.include /> tag, I must restart the server to check the changes or update the main file with a fake update, like adding a white space.

推荐答案

服务器视图中,双击Tomcat条目,转到右上方的 Publishing 部分,然后选择资源更改时自动发布.

In the Servers view, doubleclick the Tomcat entry, go to the section Publishing in right top and select Automatically publish when resources change.

但是不会立即发生,大约需要3秒钟.例如,Glassfish只需一秒钟即可完成.

It will however not happen immediately, it will take about 3 seconds. Glassfish for example, does it in a subsecond.

这篇关于是否可以在不重新启动JSF中的服务器的情况下更新应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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