Difference between revisions of "Apache DeltaSpike"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
− | Example with Quartz v2 |
+ | [https://deltaspike.apache.org/documentation/scheduler.html Example with Quartz v2] |
<source lang="java"> |
<source lang="java"> |
||
@Scheduled(cronExpression = "0 0/10 * * * ?") |
@Scheduled(cronExpression = "0 0/10 * * * ?") |
Latest revision as of 10:55, 3 August 2016
https://deltaspike.apache.org/
DeltaSpike consists of a number of portable CDI extensions that provide useful features for JavaEE and Java application developers.
@Scheduled(cronExpression = "0 0/10 * * * ?")
public class CdiAwareQuartzJob implements org.quartz.Job
{
@Inject
private MyService service;
@Override
public void execute(JobExecutionContext context) throws JobExecutionException
{
//...
}
}