The system properties are not dynamically reconfigured. When you
change/add new system properties it will get written to the domain.xml
but will not take effect until the instance jvm is restarted. The system
properties are passed as -D option to the instance jvm. So until you
restart the instance you will not see the new properties/values.
-Sankar
glassfish_at_javadesktop.org wrote:
> I am trying to use System Properties and read them from a Servlet. Reading them works fine. However, when I change a value, I don't see the change. I have Dynamic Reconfiguration checked. The new value does get written to domain.xml. However, even if I redploy the WAR my Servlet does not see the new value. The only way I have found to force it is restart Glassfish, which of course defeats the entire purpose. If I need to restart Glassfish, System Properties are of no use to me. I feel I must be missing something obvious, but I can't find anything else to try.
> ...RB
> p.s. My test servlet is trivial, just calls System.getProperty() and prints it. As noted, the servlet runs fine, but does not see System Property changes.
> [Message sent by forum member 'rb5563' (rb5563)]
>
> http://forums.java.net/jive/thread.jspa?messageID=282983
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>