Re: [OT] Write a thread to check database in web application

2007-11-06 Thread Gabriel Belingueres
Hi, If you are deploying on a full blown EJB container, you can use the TimerService too. I personally used Spring to run periodic TimerTasks and it works well. You don't need to use Quartz if your scheduling needs are simple (like run each 10 minutes). 2007/11/5, Antonio Petrelli <[EMAIL PROTEC

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Leon Rosenberg
On 11/5/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Antonio, > > Antonio Petrelli wrote: > > Though I think that Quartz is a great product, it is discouraged by the Java > > EE specifications to create threads in a webapp. > > Hey, every

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Antonio, Antonio Petrelli wrote: > Though I think that Quartz is a great product, it is discouraged by the Java > EE specifications to create threads in a webapp. Hey, every time someone asks on the Tomcat list about how to do this, I tell 'em to use

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Frank W. Zammetti
On Mon, November 5, 2007 11:17 am, Ashish Kulkarni wrote: > Hi > I dont need more then one thread, or a timer job i would say, this timer > should sleep and then activate like after 10 minutes, check the database, > if > there is nothing to do go back to sleep. > I will look into quartz, is it ok

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Ashish Kulkarni
Hi I dont need more then one thread, or a timer job i would say, this timer should sleep and then activate like after 10 minutes, check the database, if there is nothing to do go back to sleep. I will look into quartz, is it ok to use Java Timer and TimerTask to do it. For example this will be my t

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Gary Affonso
Ashish Kulkarni wrote: Hi I have to write a thread in web application which will check some values in database, and then perform some function depending on the values. There wont be any user input and this thread should be called after like 10 minutes, also i want to have a jsp page from where i

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Leon Rosenberg
<2 cents> servlet context sounds good. Start from ServletContextListener upon server start. regards Leon On 11/5/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > Hi > I have to write a thread in web application which will check some values in > database, and then perform some function depending

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Frank W. Zammetti
On Mon, November 5, 2007 10:40 am, Ashish Kulkarni wrote: > Hi > I have to write a thread in web application which will check some values > in > database, and then perform some function depending on the values. > > There wont be any user input and this thread should be called after like > 10 > minu

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Antonio Petrelli
2007/11/5, Christopher Schultz <[EMAIL PROTECTED]>: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Ashish, > > Ashish Kulkarni wrote: > > There wont be any user input and this thread should be called after like > 10 > > minutes, also i want to have a jsp page from where i can maintain this

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ashish, Ashish Kulkarni wrote: > There wont be any user input and this thread should be called after like 10 > minutes, also i want to have a jsp page from where i can maintain this > thread, like stop, change the time it should run etc. > > Are ther

[OT] Write a thread to check database in web application

2007-11-05 Thread Ashish Kulkarni
Hi I have to write a thread in web application which will check some values in database, and then perform some function depending on the values. There wont be any user input and this thread should be called after like 10 minutes, also i want to have a jsp page from where i can maintain this thread