Scheduling Email Notifications

I'm fairly new to EE development, so forgive me if the answer to this question should be obvious to me.

I want to be able to schedule a task to start at a predetermined time. Basically, I need the Java EE equivalent of the cron service on Unix systems. One example: I need to run a few DB queries and then send an email summary of the results each day at noon.

How do I go about doing this in Java EE?

[421 byte] By [codebooka] at [2007-11-27 10:49:48]
# 1

The EJB specification defines a timer service that can be used to create single-timeout or periodic

timeout events that callback into a session bean or message-driven bean.Once inside this method,

you can write any of the same business logic you could write in a regular business method, so

interacting with a database and/or sending mail using the java mail API would work well.

Here's an entry from the Java EE tutorial on the EJB timer service :

http://java.sun.com/javaee/5/docs/tutorial/doc/Session4.html

--ken

ksaksa at 2007-7-29 11:21:30 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...