You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Juan Germán Castañeda Echevarria <ju...@ciencias.unam.mx> on 2012/04/09 22:38:15 UTC

Pushing to environment without popping

Hi everyone,

I want to know if there's any problem if a service is pushed to the
environment and it's never popped. Example: a page annotated with
@UnpoppedService causes a push of the service from a RequestHandler but it
is never popped.

Or in case it causes problems, is there a way to pop it after the request
has finished?
Thanks in advance.

-- 
Juan Germán Castañeda Echevarría

Re: Pushing to environment without popping

Posted by Lance Java <la...@googlemail.com>.
I have investigated this myself and you don't need to pop environmentals.
Tapestry cleans up any thread locals at the end of a request so that a new
request will not get dirty values.

Obviously it's best to clean up any environmentals when they are no longer
required but sometimes that is not possible.