Thomas Vandahl wrote:
AFrieze wrote:
I am working on a Turbine project someone else set up. All their action
methods are synchronized.
[...]
I want to remove synchronized from all our action methods. Will this
cause problems? I have to assume that the original developers made
these methods synchronized for a reason, but am unable to determine it.
A web server which can process only one request to an action does not
seem correct. All our session data is synchronized.
Well, this depends on the way the actions are written. You should not
use class variables in these classes if you want to have
module.cache=true. With module.cache=false, everything should be working
fine without synchronization. I guess you need to check all actions for
private fields and common data objects. I never use synchronization in
actions if I can help it.
Bye, Thomas.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thomas.
I have unsynchronized a large number of action methods and will be
launching today. All the session data has been synchronized and I have
synchronized on individual objects where it is warranted. There are no
class variables within the action classes and everything should be
fine. I just do not understand why the original developers synchronized
everything to begin with.
Thanks
AFrieze
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]