java - would system properties set in one web app contradict another app in the same server? -
if server started property java.awt.headless=true
and if set system property in web application context,say "/web_app1"
, like
system.setproperty("java.awt.headless","false");
and web app context "/web_app2"
, if call
system.getproperty("java.awt.headless");
would true
or false
..?
the answer question if web_app2
started while system property of jvm set true
still true
after web_app1
has executed setproperty
method.
system properties in scope of process , not leave boundary of jvm. key-value mappings of jvm , it's environment.
this article ibm knowledge center explains well.
looking @ api system.setproperties might helpful.
Comments
Post a Comment