tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Moosauer <reinh...@mib1.de>
Subject Re: Is there a way to get access to request object without servlet?
Date Fri, 19 Jan 2007 13:49:47 GMT
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@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
-- 
Reinhard Moosauer
IT Beratung

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message