org.quartz.jobs.ee.ejb
Class EJB3InvokerJob

java.lang.Object
  extended by org.quartz.jobs.ee.ejb.EJBInvokerJob
      extended by org.quartz.jobs.ee.ejb.EJB3InvokerJob
All Implemented Interfaces:
Job

public class EJB3InvokerJob
extends EJBInvokerJob

A Job that invokes a method on an EJB3.

Expects the properties corresponding to the following keys to be in the JobDataMap when it executes:


The following keys can also be used at need:

The result of the EJB method invocation will be available to Job/TriggerListeners via JobExecutionContext.getResult().

Author:
hhuynh
See Also:
org.quartz.jobs.ee.ejb.EJBInvokerJob}

Field Summary
 
Fields inherited from class org.quartz.jobs.ee.ejb.EJBInvokerJob
CREDENTIALS, EJB_ARG_TYPES_KEY, EJB_ARGS_KEY, EJB_JNDI_NAME_KEY, EJB_METHOD_KEY, INITIAL_CONTEXT_FACTORY, PRINCIPAL, PROVIDER_URL
 
Constructor Summary
EJB3InvokerJob()
           
 
Method Summary
 void execute(JobExecutionContext context)
           Called by the Scheduler when a Trigger fires that is associated with the Job.
 
Methods inherited from class org.quartz.jobs.ee.ejb.EJBInvokerJob
getInitialContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJB3InvokerJob

public EJB3InvokerJob()
Method Detail

execute

public void execute(JobExecutionContext context)
             throws JobExecutionException
Description copied from interface: Job

Called by the Scheduler when a Trigger fires that is associated with the Job.

The implementation may wish to set a result object on the JobExecutionContext before this method exits. The result itself is meaningless to Quartz, but may be informative to JobListeners or TriggerListeners that are watching the job's execution.

Specified by:
execute in interface Job
Overrides:
execute in class EJBInvokerJob
Throws:
JobExecutionException - if there is an exception while executing the job.


Copyright 2001-2015, Terracotta, Inc.