Package org.quartz.jobs.ee.ejb
Class EJB3InvokerJob
- java.lang.Object
-
- org.quartz.jobs.ee.ejb.EJBInvokerJob
-
- org.quartz.jobs.ee.ejb.EJB3InvokerJob
-
- All Implemented Interfaces:
org.quartz.Job
public class EJB3InvokerJob extends EJBInvokerJob
A
Expects the properties corresponding to the following keys to be in theJobthat invokes a method on an EJB3.JobDataMapwhen it executes:EJB_JNDI_NAME_KEY- the JNDI name (location) of the EJB's home interface.EJB_METHOD_KEY- the name of the method to invoke on the EJB.EJB_ARGS_KEY- an Object[] of the args to pass to the method (optional, if left out, there are no arguments).EJB_ARG_TYPES_KEY- an Class[] of the types of the args to pass to the method (optional, if left out, the types will be derived by calling getClass() on each of the arguments).
The following keys can also be used at need:INITIAL_CONTEXT_FACTORY- the context factory used to build the context.PROVIDER_URL- the name of the environment property for specifying configuration information for the service provider to use.
The result of the EJB method invocation will be available to
Job/TriggerListeners via.JobExecutionContext.getResult()- See Also:
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
Constructors Constructor Description EJB3InvokerJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(org.quartz.JobExecutionContext context)-
Methods inherited from class org.quartz.jobs.ee.ejb.EJBInvokerJob
getInitialContext
-
-
-
-
Method Detail
-
execute
public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException- Specified by:
executein interfaceorg.quartz.Job- Overrides:
executein classEJBInvokerJob- Throws:
org.quartz.JobExecutionException
-
-