If the state methods manipulate or depend upon some sort of external
data then, sure, you've got a logical synchronization problem.

        On the other hand, since each method call is going to have its own
stack frame, if your method has no data dependencies and just looks at stuff
on the stack frame you're fine.

        That's why there aren't synchronization problems on the OOB static
methods like Integer.parseInt();

        --- Pat

> -----Original Message-----
> From: John MccLain [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 08, 2005 11:32 AM
> To: tapestry-user-list
> Subject: a simple question about static method calls in Tomcat
> 
> if user A and user B both make a servlet request simultaneously, and that
> servlet calls static methods from another class,
> Does this present a synchronization problem? I am not understanding how
> Tomcat handles classes with static methods
> 
> John McClain
> Senior Software Engineer
> TCS Healthcare
> [EMAIL PROTECTED]
> (530)886-1700x235
> "Skepticism is the first step toward truth"
> 
> 
> ---------------------------------------------------------------------
> 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