Title: RE: UserManager shutdown hook?


What do you gain by doing it this way? Can you update your
cache when getUser() is called, and reap any idle users
then? What is this cache used for? What kind of user manager
are you using?


Thank's
Andrej


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 13, 2000 2:23 PM
> To: Orion-Interest
> Cc: [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: RE: UserManager shutdown hook?
>
>
>
> Luckily, we are using *NO* stateful session beans for this
> user.  For each
> user, we keep track of a timestamp of when the last time the
> getUser method
> was called.  If it has been more than an hour, we remove them
> and the next
> call will pull that user back from the database, and back
> into the users
> cache.  But the thread that *reaps* this table gets spawned
> everytime we
> restart, and since the program never exits, the threads do
> not get cleaned
> up.
>
> James Birchfield
>

Reply via email to