Bookmark Topic Watch Topic
  • New Topic

Automating a process

 
Reggie McDougal
Ranch Hand
Posts: 69
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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?

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Have a look at java.util.Timer
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Here's an article and discussion thread from The Server Side. The article talks about Quartz; we use another product called Flux from Sims
 
Colin Fletcher
Ranch Hand
Posts: 200
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
If you have access to the server there is cron for UNIX and at for Windows.
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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)

Mark
 
    Bookmark Topic Watch Topic
  • New Topic