geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Y.H." <yhlin.intraso...@gmail.com>
Subject Re: SOS! static variable not work under 2.0.2 & 2.1.1 !!
Date Fri, 19 Sep 2008 09:45:01 GMT



Y.H. wrote:
> 
> 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-tp19569324s134p19569335.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message