@javax.ejb.Schedule

From NovaOrdis Knowledge Base
Revision as of 16:29, 25 September 2017 by Ovidiu (talk | contribs) (→‎Configuration)
Jump to navigation Jump to search

External

Internal

Overview

Used by EJB to designate timeout callback methods that will be invoked by automatically-created timers.

Example:

@Schedule(hour="3", dayOfMonth="1", info="something")
public void toBeExecutedAt3AMOnTheFirstDayOfTheMonth() {
   ...
}

Configuration

The annotation is configured using a cron-like time expression