Do not use class variables at all. A FINAL class variable may point to a
hashmap so the variable cannot point to another hashmap once initialized
but its contents can still be modified. So just use method level
variables.

-----Original Message-----
From: Riyad Kalla [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 10, 2004 8:56 AM
To: Struts Users Mailing List
Subject: Re: strange tomcat problem with struts1.1


Jingesh,
See my last post, you don't need to synchronize and it will just slow 
down your app (NOTE: Do not make use of non-final class variables in 
Actions and you will be fine)

Jignesh Patel wrote:

>Hi All,
>We are facing one strange problem, our server hangs after every 2-3
days. The 
>reason behind it, is it tomcat creates unwanted java processes.
>From my side I haven't implemented anything special except adding 
>"synchronized (this) {"  line in execute method so that I can avoid 
>concurrent request.
>
>Will it be the reason?
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to