Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Is there a way to get access to request object without servlet?

Reinhard Moosauer

2007-01-19

Replies:

Hi,

JBoss implements this with ThreadLocal-Variables.
Tomcat does not use them like JBoss, but you can quite easily do it by
yourself.
see java.lang.ThreadLocal

There may be pitfalls, mainly caused by the very limited lifetime of a request
object. But for a loginModule this could be appropriate.

hope this helps

R.

Am Freitag, 19. Januar 2007 12:53 schrieb Libor Arndt:
> I need to have access to request in a JAAS logim module.
> Is there something similar in Tomcat like in JBosss:
>
> PolicyContext.getContext(key)?
>
> thanks a lot for any advice
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
--
Reinhard Moosauer
IT Beratung

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.