In this post of Quartz, I will explain how to add listeners to listen for trigger events. We can use the listeners to listen for trigger events and add custom logic at these points. We need to create a class that implements org.quartz.TriggerListener interface or extends org.quartz.listeners.TriggerListenerSupport class and override interested events. For our example…… Continue reading Adding Trigger Listener using TriggerListener
Month: October 2018
Chaining multiple ItemProcessor
In this post of Spring Batch, I will explain with an example how to chain multiple ItemProcessors. For my example, I will create an ItemProcessor which will go through employee records one item at a time and filter out odd records. Below is the code of the ItemProcessor package xml.package11; import org.springframework.batch.item.ItemProcessor; public class EmployeeFilterItemProcessor…… Continue reading Chaining multiple ItemProcessor
ItemReadListener, ItemWriteListener, and ItemProcessListener Example
In this post under Spring Batch, I will explain how to create listeners during 1) reading of an item2) writing of an items3) processing of an item with an example. We create listeners by implementing the three interfaces ItemReadListener, ItemWriteListener, and ItemProcessListener. The class that implements ItemReadListener<T> interface must provide implementation for the below three…… Continue reading ItemReadListener, ItemWriteListener, and ItemProcessListener Example
Quartz JobDataMap Example Part 2
In the previous post under Quartz Scheduler, I explained what JobDataMap is about and I also mentioned that JobDataMap can be passed to an instance of Job through JobDetail and Trigger. In the previous post I explained with an example on how to pass JobDataMap to an instance of Job through JobDetail. In this post…… Continue reading Quartz JobDataMap Example Part 2