running application

Hi!

I want to run an application that will check a database, if it found data then procceses it else continue checking the database until new data found.

I'm new to java and want to know if this is posible (have the application running all day checking for data), and how can I do it?

Thanks

[319 byte] By [soirenitneba] at [2007-9-29 17:18:04]
# 1
That can be done - in a straight-forward way.Do elaborate logging in order you can reconstruct problems.Database triggers and stored procedures might be what you are interested in. That is a non-java area outside my interest.
joop_eggena at 2007-7-15 16:04:46 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 2
I'd look at java.util.Timer and java.util.TimerTask. You can write a TimerTask that will execute on fixed intervals to check that database for you. - MOD
duffymoa at 2007-7-15 16:04:46 > top of Java-index,Archived Forums,New To Java Technology Archive...