> From: Michael Dockery [mailto:dockeryjava...@yahoo.com] 
> Subject: Custom Realm

> Q1) Should I create a new custom realm (..subClass
> of RealmBase) which is based-on/copied-from the 
> original/standard tomcat realm?   

You can, but wouldn't it be simpler to subclass the realm whose behavior is 
already closest to what you want?

> Q2) what all classes will I need in my new custom realm?

A realm is usually just one class.

> Q3) Should I reference my new realm via my webapp's 
> META-INF/context.xml file?

Yes.

> Q4) Should I put my realm class(es) in a jar inside the
> tomcat6/lib directory?

That's where it must go, and only there.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

  • Custom Realm Michael Dockery
    • RE: Custom Realm Caldarale, Charles R

Reply via email to