File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Automating a process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

Automating a process

Reggie McDougal
Ranch Hand

Joined: Sep 27, 2004
Posts: 69
If some one can give me some pointers in how I go about
getting an object to run in a time period..

eg I want to run a query on an hourly basis check a timestamp
and extract the data in a dataset and write to a file.

Is it possible in java to get an object to instaniate itself and
run a query?

You can never drink too much
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Have a look at java.util.Timer

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Here's an article and discussion thread from The Server Side. The article talks about Quartz; we use another product called Flux from Sims

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Colin Fletcher
Ranch Hand

Joined: Sep 10, 2004
Posts: 200
If you have access to the server there is cron for UNIX and at for Windows.

SCJP 1.4 SCWCD 1.4
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Closing this thread as it is not a Servlets question. There are some good answers already here, but if you want you can repost your question in a more appropriate forum like Java In General (Beginner)


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Automating a process
It's not a secret anymore!