users@glassfish.java.net

Setting a static field in different webapps

From: <glassfish_at_javadesktop.org>
Date: Wed, 23 Jun 2010 17:58:42 PDT

Hi,

I have a couple of questions about web application contexts :

#1)

If I have :
- a jar mylib.jar with a class with a static field Test.myfield = "default";
- a webapp W1 with WEB-INF/lib/mylib.jar
- a webapp W2 also with WEB-INF/lib/mylib.jar

If I trigger a
Test.myfield = "test1" on W1
then what will be the value if I call Test.field in W2 ?


#2)

Is there a way to set system properties specifically for a webapp ?
ex: com.sun.jndi.ldap.connect.pool.maxsize

Thanks
[Message sent by forum member 'benjaminjaton']

http://forums.java.net/jive/thread.jspa?messageID=475612