public class JTAJobRunShell extends JobRunShell
An extension of
that
begins an XA transaction before executing the Job, and commits (or
rolls-back) the transaction after execution completes.
JobRunShell
JobRunShell
jec, jobRunShellFactory, qs, schdCtxt, scheduler, shutdownRequested
Constructor and Description |
---|
JTAJobRunShell(JobRunShellFactory jobRunShellFactory,
Scheduler scheduler,
SchedulingContext schdCtxt)
Create a JTAJobRunShell instance with the given settings.
|
Modifier and Type | Method and Description |
---|---|
protected void |
begin() |
protected void |
complete(boolean successfulExecution) |
void |
passivate()
Override passivate() to ensure we always cleanup the UserTransaction.
|
completeTriggerRetryLoop, getLog, initialize, requestShutdown, run, schedulerShuttingdown, vetoedJobRetryLoop
jobAdded, jobDeleted, jobScheduled, jobsPaused, jobsResumed, jobUnscheduled, schedulerError, schedulerInStandbyMode, schedulerShutdown, schedulerStarted, triggerFinalized, triggersPaused, triggersResumed
public JTAJobRunShell(JobRunShellFactory jobRunShellFactory, Scheduler scheduler, SchedulingContext schdCtxt)
Create a JTAJobRunShell instance with the given settings.
protected void begin() throws SchedulerException
begin
in class JobRunShell
SchedulerException
protected void complete(boolean successfulExecution) throws SchedulerException
complete
in class JobRunShell
SchedulerException
public void passivate()
passivate
in class JobRunShell
Copyright © 2017. All rights reserved.