问题
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