A scheduled task in OpenMRS runs every so often and does tasks in the background.  

Every task is run on a new thread.

Your class should extend AbstractTask

Examples

http://source.openmrs.org/browse/OpenMRS/trunk/api/src/main/java/org/openmrs/scheduler/tasks

Authentication

See Daemon User

See Also

?Administering Scheduled Tasks