I have a tomcat question for you . 

 

In Tomcat’s server.xml, we define a realm (only ONE)

    <Realm classname = “com.mypackage.myRealm” >

 

When tomcat starts, I think it will instantiate a realm object of this type .  

 

I am trying to find a way to access this realm object in my servlet (the servlet that 
starts after the realm's authentication 

succeeds).

There’s a method “getRealm()” from org.apache.catalina.core.ContainerBase , but how 
would we get this ContainerBase ?

Does Tomcat have some kind of global object of this type ?



Thank you . Chinh



---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Reply via email to