tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Jacobson <>
Subject Re: [Q] Extending a Realm
Date Thu, 24 Jul 2003 12:12:12 GMT
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
> this occurred.
> Can it be done?   

You want to record the data & time of last login, right? I wouldn't 
modify/subclass the Realm at all - instead, I would write an 
HTTPSessionListener class, and do it in the sessionCreated() method.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message