Dear sir,
Whatever using singleton pattern or static variable, Geronimo could not
access correctly like static variable or singleton behavior!
1. I just used a Class which declaired a public static String STATICDATA.
public class TestClass{
public static String STATICDATA;
}
2. a AServlet in AWeb application: TestClass.STATICDATA="abc"; the in
BServlet in AWeb application can get "abc" from TestClass.STATICDATA.
3. BUT, a CServlet in BWeb application tried to get value from
TestClass.STATICDATA. the result is null
GOD! everything will be ok in WebSphere/Tomcat/WebLog, but just Geronimo
not.
Any help will be appreciated.
--
View this message in context:
http://www.nabble.com/SOS%21-static-variable-not-work-under-2.0.2-%21%21-tp19569324s134p19569324.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.