On 7/1/03 5:27 PM, "Ciramella, EJ" <[EMAIL PROTECTED]> wrote:

> Am I missing the boat here?  Is there no good way to do this?  If there is a
> particular methodology, please enlighten me.
> 
> -----Original Message-----
> From: Ciramella, EJ
> Sent: Tuesday, July 01, 2003 4:38 PM
> To: '[EMAIL PROTECTED]'
> Subject: Running a class on startup - java newbie....
> 
> 
> I'm working on jsp based registration system where after submitting the
> registration form, the application then inserts a row in a table that
> contains the date it was created as well as an ID.  What I'd like to do is
> have <something> running that sleeps for 5 minutes at a time and then checks
> to see if 24 hours have passed since the row was inserted (and if so, delete
> it).  Is there a way to start up a class with my web app?
> 
> 
Why don�t you create a trigger and id generator inside the database.

Its a good idea to keep that stuff out of the application,

The database server is always 'listening' and it knows the exact instance
the record was created and will store it inside and it also knows what the
available generated keys are.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to