I personally wouldn't inject HttpServletRequest anywhere deeper in the
object graph than the servlet.
Bob

On Mon, Aug 3, 2009 at 6:16 PM, Paul Lindner <[email protected]> wrote:

>
> I've been looking into Reqest Scopes and GuiceFilter and noticed that
> it uses a ThreadLocal to store the request state.  This works fine for
> single threaded request/response model.  However if an application
> uses a cached thread pool or child threads then injection is not
> possible.
>
> Is there a solution in the works for this situation?  An
> InheritableThreadLocal would suffice for threads created by the
> request thread -- however using something like
> Executors.newCachedThreadPool(); would not.
>
> Thanks.
> paul
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to