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
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
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
>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
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
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
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).
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
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
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
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
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:
12 matches
Mail list logo