Version Warning

The content below is for Apache Syncope <= 1.2 - for later versions the Reference Guide is available.

Introduction

A scheduled task job class is a Java class that implements the logic of a scheduled task.

The same job can be assigned to more than one Scheduled Task.

Implementation

Syncope < 1.1.0

Quartz 1.8.X is used.

A scheduled task job is a Java implementation of org.quartz.StatefulJob interface.

In order to simplify the implementation, the abstract Java class AbstractJob has been provided. AbstractJob implements StatefulJob and also takes care of all necessary settings.

Take a look at sample job class.

Syncope >= 1.1.0

Quartz 2.1.X is used.

A scheduled task job is a Java implementation of org.quartz.Job interface.

In order to simplify the implementation, the abstract Java class AbstractTaskJob has been provided. AbstractTaskJob is annotated with @DisallowConcurrentExecution and takes care of all necessary settings.

If you need @Transactional support, since Syncope >= 1.1.3 AbstractTransactionalTaskJob should be extended instead.

Take a look at sample job class.

Deploy

A job class can be deployed:

  • at project definition time
    by adding own implementation into the overlay project, before to build Syncope.
  • at run-time
    by adding into the container classpath own implementation (container must be re-started to reload the classpath).