Skip to content

jberet/jberet-schedule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This module provides support for scheduling batch job executions in batch applications. It contains 2 sub-modules that provides 3 types of batch job scheduler:

  • jberet-schedule-executor sub-module
    • scheduler based on java.util.concurrent.ScheduledExecutorService, suitable for Java SE applications.
    • scheduler based on jakarta.enterprise.concurrent.ManagedScheduledExecutorService, suitable for Java EE applications.
  • jberet-schedule-timer sub-module
    • scheduler based on EJB Timer

Other types of job scheduler implementations are also possible by extending org.jberet.schedule.JobScheduler.

ScheduledExecutorService-based JobScheduler can be configured with:

  • a custom ManagedScheduledExecutorService JNDI lookup name (Java EE app only);
  • a java.util.concurrent.ConcurrentMap<String, JobSchedule> to store all job schedules;
  • fully-qualified name of the implementation class of JobSchedue.

How to Build jberet-schedule

To clean and build:

mvn clean install 

How to Use jberet-schedule

  • In Java SE applications:
    • include jberet-schedule-executor module in application classpath.
    • See tests using jberet-schedule-executor in Java SE environment.
  • In Java EE or web applications deployed to JBoss EAP & WildFly:

Resources