Is it possible to update the app without restarting the server in JSF?

故事扮演 提交于 2019-12-07 04:14:21

问题


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.

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.


回答1:


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

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




回答2:


I've used JRebel before for that http://www.zeroturnaround.com/jrebel/
It's not free, but has 30 days trial.



来源:https://stackoverflow.com/questions/3848510/is-it-possible-to-update-the-app-without-restarting-the-server-in-jsf

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