Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Properties file changes are not reflecting unless restarting Glassfish server

I am using JSF2.0 and Glassfish v3.

I have a ValidatorMessage.properties file under WEB-INF>Classes folder of my project.

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

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

Are there any configurations to be made in Glassfish or my project side?

P.S.-> the same functionality works under Jetty 7.0.0pre3

Please comment if question is not clear..

like image 246
niksvp Avatar asked Dec 17 '10 07:12

niksvp


1 Answers

There is no need to restart the server when you make change in a properties file. I often do changes in my files for internationalization and i don't need to restart.

I don't know what IDE do you use, but i use eclipse and there i have an option when i double click on Glassfish application server to automatically publish when changes are detected(See image below). I think that is what you are looking for.

enter image description here

Also there is a podcast from oracle that mentions it(time 2.04)

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

like image 172
javing Avatar answered Sep 28 '22 03:09

javing