You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Kosarev A.V." <su...@webkazan.ru> on 2006/07/05 08:54:48 UTC
ASO & Interceptor
Hi all!
How I can receive tapestry state object (e.g. visit object) in hivemind
interceptor?
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: ASO & Interceptor
Posted by Henri Dupre <he...@gmail.com>.
Be careful with ThreadLocal. As someone else reported it here, you need to
do a ThreadLocal.remove() when the app is shutdown otherwise, the content of
the ThreadLocal won't eligible for garbage collection.
Btw, why did you need to use a ThreadLocal?
On 7/10/06, Kosarev A.V. <su...@webkazan.ru> wrote:
>
> Thanks!
> I solved this problem using HttpSessionContextIntegrationFilter and
> ThreadLocal.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Thanks,
Henri.
Re: ASO & Interceptor
Posted by "Kosarev A.V." <su...@webkazan.ru>.
Thanks!
I solved this problem using HttpSessionContextIntegrationFilter and
ThreadLocal.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: ASO & Interceptor
Posted by Ron Piterman <rp...@gmx.net>.
The simple approach is to use the
http://tapestry.apache.org/tapestry4/tapestry/hivedocs/service/tapestry.state.ApplicationStateManager.html
service, either autowired or specifically set to your interceptor service.
Another version which I use is create one hivemind service with getters
for all of your state objects - the implemntation uses again the service
mentioned above, but I like it because its easy to maintain.
Cheers,
Ron
Kosarev A.V. wrote:
> Hi all!
>
> How I can receive tapestry state object (e.g. visit object) in hivemind
> interceptor?
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org