On Thu, Oct 2, 2008 at 10:56 PM, Brian Eaton <[EMAIL PROTECTED]> wrote:

> On Thu, Oct 2, 2008 at 9:34 PM, Evan Gilbert <[EMAIL PROTECTED]> wrote:
> > Request scoped Guice variables handle this much more
> > cleanly.
>
> Do you have some example code for this?  Would it work something like this:
>
> - SecurityTokenDecoder verifies token, sticks verified token in ether
> fully typed
> - Code running later on in request processing magically pulls token
> (as full type) out of ether
>
> Setting credentials as thread-local is sometimes used for this kind of
> thing, but I can't see that working for something that uses thread
> pools as much as Shindig.


And, in fact, it doesn't work because HTTP request processing is frequently
done on a separate thread from the one processing the request.

Reply via email to