turbine-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sheldon Ross" <ross_shel...@hotmail.com>
Subject Re: Synchronized Velocity Actions
Date Mon, 27 Nov 2006 19:55:00 GMT
Let's see, there exists session persistent objects that we need to protect, 
ie preventing a user from performing an action that will change the contents 
of that object while another of his own method calls is using that object. 
But these objects are only session specific, another user has his own 
session object.

ex turbineresources line:
tool.session.obj = src.dataobjs.sessionobj

Therefore from what I understand, each user should be able to run there own 
methods at the same time as they do not reference any of the same objects. 
Unfortunately this is not happening. I was curious as to if anyone knew why 
this was. The only thing I can think of, is that somehow there is something 
in the RunData object, or the Velocity Context that is the same between both 
sessions. This would prevent the methods from being able to run at the same 

>From: Thomas Vandahl <tv@apache.org>
>Reply-To: "Turbine Users List" <turbine-user@jakarta.apache.org>
>To: Turbine Users List <turbine-user@jakarta.apache.org>
>Subject: Re: Synchronized Velocity Actions
>Date: Mon, 27 Nov 2006 20:43:17 +0100
>Sheldon Ross wrote:
> > Hello,
> >   I am currently working on the development of a large Turbine based
> > project that involves a large number of database queries. The problem I
> > am experiencing relates to the synchronizing of doPerform methods under
> > VelocityAction.
>Actually, I'm afraid I don't understand the issue. What happens in your
>action that a synchronization is needed? In general, it is not a good
>idea to synchronize things, especially when running a web application.
>So would you please give me some insight?
>Bye, Thomas.
>To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: turbine-user-help@jakarta.apache.org

Get FREE company branded e-mail accounts and business Web site from 
Microsoft Office Live 

To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org

View raw message