Class EJBInvokerJob

  extended by
All Implemented Interfaces:

public class EJBInvokerJob
extends java.lang.Object
implements Job

A Job that invokes a method on an EJB.

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().

Andrew Collins, James House, Joel Shellman, Chris Bonham

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

Field Detail


public static final java.lang.String EJB_JNDI_NAME_KEY
See Also:
Constant Field Values


public static final java.lang.String EJB_METHOD_KEY
See Also:
Constant Field Values


public static final java.lang.String EJB_ARG_TYPES_KEY
See Also:
Constant Field Values


public static final java.lang.String EJB_ARGS_KEY
See Also:
Constant Field Values


public static final java.lang.String INITIAL_CONTEXT_FACTORY
See Also:
Constant Field Values


public static final java.lang.String PROVIDER_URL
See Also:
Constant Field Values


public static final java.lang.String PRINCIPAL
See Also:
Constant Field Values


public static final java.lang.String CREDENTIALS
See Also:
Constant Field Values
Constructor Detail


public EJBInvokerJob()
Method Detail


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
JobExecutionException - if there is an exception while executing the job.

Copyright 2001-2019, Terracotta, Inc.