geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Y.H." <>
Subject SOS! static variable not work under 2.0.2 !!
Date Fri, 19 Sep 2008 09:44:23 GMT

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

Any help will be appreciated.

View this message in context:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message