[Q] Extending a Realm

2003-07-24 Thread Riaan Oberholzer
Is it possible to extend the standard Realms, or do you have to re-do it from scratch by implementing the interface again? I want everything the Datasource Realm provides, except when the authentication succeeds, I want to update the user db table to indicate the date/time this occurred. Can it

Re: [Q] Extending a Realm

2003-07-24 Thread Tim Funk
Yup - as long as the methods your extending are not declared as final. Just make sure your class lives in the /server/ classloader. -Tim Riaan Oberholzer wrote: Is it possible to extend the standard Realms, or do you have to re-do it from scratch by implementing the interface again? I want

Re: [Q] Extending a Realm

2003-07-24 Thread Martin Jacobson
Riaan Oberholzer wrote: Is it possible to extend the standard Realms, or do you have to re-do it from scratch by implementing the interface again? I want everything the Datasource Realm provides, except when the authentication succeeds, I want to update the user db table to indicate the date/time

Re: [Q] Extending a Realm

2003-07-24 Thread Riaan Oberholzer
/server/ classloader? What does this mean... I have to have the custom Realm available to a wider context than just in my application .war? --- Tim Funk [EMAIL PROTECTED] wrote: Yup - as long as the methods your extending are not declared as final. Just make sure your class lives in the

Re: [Q] Extending a Realm

2003-07-24 Thread Riaan Oberholzer
That's a good idea, thanks Can you also e.g. in this method add the user object to the session so that jsp's have instant access to it? --- Martin Jacobson [EMAIL PROTECTED] wrote: Riaan Oberholzer wrote: Is it possible to extend the standard Realms, or do you have to re-do it from

Re: [Q] Extending a Realm

2003-07-24 Thread Riaan Oberholzer
Just thought about it having a session doesn't mean you are successfully logged in, does it? The moment you open the browser and gets directed to the logon JSP, you have a session, right? That does not mean you have logged in successfully... or what am I missing here? --- Martin Jacobson

Re: [Q] Extending a Realm

2003-07-24 Thread Tim Funk
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html -Tim Riaan Oberholzer wrote: /server/ classloader? What does this mean... I have to have the custom Realm available to a wider context than just in my application .war? --- Tim Funk [EMAIL PROTECTED] wrote: Yup - as long