tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiago H. de Paula Figueiredo" <thiag...@gmail.com>
Subject Re: Instantiation of perthread dispatcher
Date Thu, 01 Oct 2009 13:52:51 GMT
Em Thu, 01 Oct 2009 10:15:37 -0300, <dirk.lattermann@bgs-ag.de> escreveu:

> Hello list!


> @Scope( ScopeConstants.PERTHREAD)
> class OssoAccessControllerImpl {...}

I can't see why it should be per thread.

> This is just for the render part request after the tapestry redirect!  
> When exactly is the dispatcher instantiated?

Once per thread, i.e. once per request.

> I thought it would be once for
> each request, not eight times.

Requests for assets (CSS, JavaScript, etc) are requests too.

> It's also strange to see two different
> thread names in the log (not one, not eight). Is the dispatcher somehow
> instantiated once per page and component?

No. It is instantiated once per thread. :)

Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor

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

View raw message