Monitoring and Logging Flashcards
(6 cards)
1
Q
How can you monitor job execution history?
A
By querying the BATCH_JOB_EXECUTION table.
2
Q
How can you enable logging for Spring Batch?
A
By configuring a logging framework like Logback or Log4j.
3
Q
What is the ExecutionContext?
A
A key-value store for sharing data between steps.
4
Q
How can you track item processing times?
A
By implementing a StepExecutionListener to log start/end times.
5
Q
How can you customize job failure handling?
A
By using JobExecutionListener to send alerts on failure.
6
Q
How can you retry a failed job execution?
A
By relaunching it with the same job parameters.