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
JobRunShelljec, 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, vetoedJobRetryLooppublic JTAJobRunShell(JobRunShellFactory jobRunShellFactory, Scheduler scheduler, SchedulingContext schdCtxt)
Create a JTAJobRunShell instance with the given settings.
protected void begin()
throws SchedulerException
begin in class JobRunShellSchedulerExceptionprotected void complete(boolean successfulExecution)
throws SchedulerException
complete in class JobRunShellSchedulerExceptionpublic void passivate()
passivate in class JobRunShellCopyright © 2014. All rights reserved.