Running a class on startup - java newbie....

2003-07-01 Thread Ciramella, EJ
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 running that sleeps for 5 minutes at a time and then checks to see if 24 hou

RE: Running a class on startup - java newbie....

2003-07-01 Thread Ciramella, EJ
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

Re: Running a class on startup - java newbie....

2003-07-01 Thread Andre D Bonner
uly 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 > cont

Re: Running a class on startup - java newbie....

2003-07-01 Thread Andre D Bonner
>What I'd like to do is > have 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? > Looks like good old Thread based timer It is a thread that sit

RE: Running a class on startup - java newbie....

2003-07-01 Thread Ciramella, EJ
await access to a resource and then run versus creating a separate thread. Thanks for the ideas guys, keep 'em commin'!!! -Original Message- From: Andre D Bonner [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 5:55 PM To: Tomcat Users List Subject: Re: Running a class on

RE: Running a class on startup - java newbie....

2003-07-01 Thread James Courtney
ist Subject: Re: Running a class on startup - java newbie >What I'd like to do is > have 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

RE: Running a class on startup - java newbie....

2003-07-01 Thread Ciramella, EJ
y 01, 2003 2:55 PM To: Tomcat Users List Subject: Re: Running a class on startup - java newbie >What I'd like to do is > have 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).

RE: Running a class on startup - java newbie....

2003-07-01 Thread Raiden
rsus creating a separate thread. > > Thanks for the ideas guys, keep 'em commin'!!! > > -Original Message- > From: Andre D Bonner [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 01, 2003 5:55 PM > To: Tomcat Users List > Subject: Re: Running a class on startup

RE: Running a class on startup - java newbie....

2003-07-01 Thread Raiden
nt: Tuesday, July 01, 2003 6:07 PM > To: Ciramella, EJ > Cc: Tomcat Users List > Subject: RE: Running a class on startup - java newbie > > > EJ, > You can create an initialization servlet that get's loaded at > startup of your webapp. This servlet could create

Re: Running a class on startup - java newbie....

2003-07-01 Thread Andre D Bonner
t; -Original Message- > From: Andre D Bonner [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 01, 2003 5:55 PM > To: Tomcat Users List > Subject: Re: Running a class on startup - java newbie > > >> What I'd like to do is >> have running that sleeps for

RE: Running a class on startup - java newbie....

2003-07-01 Thread James Courtney
EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 3:09 PM To: Tomcat Users List Subject: RE: Running a class on startup - java newbie Ok, but like I said, all the developers 'round these parts are saying that threads are a no-no. Honestly, I'm not even sure that the DB cleanup I'm try

RE: Running a class on startup - java newbie....

2003-07-01 Thread Mayne, Peter
Title: RE: Running a class on startup - java newbie Maybe they're getting confused with EJBs, where apparently thread creation is outlawed by the spec. PJDM -- Peter Mayne Technology Consultant Spherion Technology Solutions Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602 T: