Changes to file properties are not reflected if restarting the Glassfish server

I am using JSF2.0 and Glassfish v3.

I have a ValidatorMessage.properties file in the WEB-INF> My Project Classes folder.

When I make any changes to the messages in this file, through my project its changes are not reflected.

I access these messages through <f:loadBundle var="msg" basename="ValidationMessages"/>

Are there any configurations in Glassfish or my side of the project?

PS-> the same functionality works in Jetty 7.0.0pre3

Please comment if the question is not clear.

+6
java web-applications jsf-2 glassfish-3
source share
1 answer

There is no need to restart the server when changing the properties file. I often make changes to my files for internationalization, and I do not need to restart.

I don’t know which IDE you use, but I use eclipse, and there I have an option when I double-click on the Glassfish application server to automatically publish when changes are detected (see image below). I think this is what you are looking for.

enter image description here

There is also an oracle podcast that mentions it ( time 2.04 )

http://www.youtube.com/watch?v=ppGqtOeHm-g&feature=related

0
source share

All Articles