Am 29.10.2010 um 16:24 schrieb Thiago H. de Paula Figueiredo:

> On Fri, 29 Oct 2010 12:14:18 -0200, Moritz Gmelin <moritz.gme...@gmx.de> 
> wrote:
> 
>> Hi,
> 
> Hi!
> 
>> It happened to me again that one of my RequestFilters was creating a 
>> SessionStateObject. Which, when done for all assets of a page simply fails 
>> at one point. Different Threads accessing different Assets in parallel start 
>> to create new Sessions and thus the SSO gets lost.
> 
> What are you using to create the SSO and set it in the session?
> 
To create the SSO in my RequestHandler I have an ApplicationStateManager asm 
injected and call asm.get (SSO.class).


>> Now one can resolve this by putting all RequestFilters that use the SSO 
>> behind the StaticFile filter. But since it is not enforced by Tapestry, 
>> other people might stumble over this.
> 
> Why don't you just set the SSO in page requests?
> 
In this case I use an SSO to do access control.


>> So that it would be OK to have multiple parts of the page be handled by 
>> different threads using the same SSO?
> 
> Multiple parts of a page be handled by different threads? I'm not following 
> you. Rendering a given page is done by a single thread for a given request.
> 
If you have multpile assets on a page (and probably also if you load some zones 
with ajax) you can see that those parts are loaded from different threads if 
you just add some debug output in e.g. a timing filter.

M.




> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to