RE: Using Non-Servlet Timers (Was - I need to run a servlet periodically)

2002-10-10 Thread Kris Schneider
:[EMAIL PROTECTED]] Sent: 09 October, 2002 9:53 PM To: Tomcat Users List Subject: Using Non-Servlet Timers (Was - I need to run a servlet periodically) Hello, We are using java.util.Timer objects to periodically run through a few object caches and get rid of stale items. Everything

Re: I need to run a servlet periodically

2002-10-09 Thread Raj Saini
To need the servlet run periodically you need a client calling the servlet periodically. Make your client to run periodically and it will cause the servlet to run. We can suggest you a solution if you let us know what exactly you want your servlet to do. Raj Saini Filip Rachunek wrote:

SV: I need to run a servlet periodically

2002-10-09 Thread Cato, Christopher
-Ursprungligt meddelande- Fran: Raj Saini Till: Tomcat Users List Skickat: 2002-10-07 23:24 Amne: Re: I need to run a servlet periodically To need the servlet run periodically you need a client calling the servlet periodically. Make your client to run periodically and it will cause the servlet

Re: I need to run a servlet periodically

2002-10-09 Thread Wolfgang Stein
, Christopher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 3:04 PM To: '[EMAIL PROTECTED]' Subject: SV: I need to run a servlet periodically What you really need to do is to design your periodical servlet to implement Runnable. Add another servlet that starts the periodical

Re: I need to run a servlet periodically

2002-10-09 Thread Rick Fincher
class the connection pool info and other needed session info. Rick - Original Message - From: Cato, Christopher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 09, 2002 9:04 AM Subject: SV: I need to run a servlet periodically What you really need to do is to design

Using Non-Servlet Timers (Was - I need to run a servlet periodically)

2002-10-09 Thread gautam
Subject: Re: I need to run a servlet periodically Hi Filip, Your servlet can call a class (doesn't have to be a servlet) that sets up a java.util.timer to run your code as a timerTask. The servlet can get parameters from the web.xml file (like how often to execute) and pass that to your class

RE: Using Non-Servlet Timers (Was - I need to run a servlet periodically)

2002-10-09 Thread Sexton, George
Register a context listener and free the timer in it. -Original Message- From: gautam [mailto:[EMAIL PROTECTED]] Sent: 09 October, 2002 9:53 PM To: Tomcat Users List Subject: Using Non-Servlet Timers (Was - I need to run a servlet periodically) Hello, We are using java.util.Timer

I need to run a servlet periodically

2002-10-05 Thread Filip Rachunek
Hello, is it possible to have a servlet in Tomcat container which is invoked automatically each gived time period? [e.g. each 10 minutes] And I would also need this special servlet to access other resources of my web application [connection pool, ...]. Thanks. Filip Rachunek

Re: I need to run a servlet periodically

2002-10-05 Thread Nikola Milutinovic
Filip Rachunek wrote: Hello, is it possible to have a servlet in Tomcat container which is invoked automatically each gived time period? [e.g. each 10 minutes] And I would also need this special servlet to access other resources of my web application [connection pool, ...]. You're making

Re: I need to run a servlet periodically

2002-10-05 Thread Malachi de AElfweald
Unless you are just trying to do refresh, in which case you could use the meta-tags to do auto-refresh and server-push. If you were trying to do a servlet that managed something always running, then you would want a daemon that could handle live-updates. Please be more clear on the usage.