Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 922
Paulo Guedes Avatar asked Oct 03 '10 03:10

Paulo Guedes


1 Answers

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

alt text

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

like image 189
BalusC Avatar answered Oct 04 '22 00:10

BalusC