Calling the Logger.fatal() method
You can terminate a job by calling the com.ibm.is.cc.javastage.api.Logger.fatal() method from your Processor implementation.
When Java™ code calls
the Logger.fatal() method, the job does not return the control to
the Java code. The Processor.terminate()
method,
which stops the job cannot be invoked. This might result in an issue
while restarting the job.
If your Java code
requires a termination process, then use the ConnectorException
object
or any other Exception object, because the Processor.terminate() method
is invoked with the isAborted
argument set to true.
The following example shows Java code calls the Logger.fatal() method. The job ends and the messageMy job terminates abnormally is logged to the job log with the message ID IIS-CONN-JAVA-00015.
Logger.fatal("My job terminates abnormally.");