Adding Trigger Listener using TriggerListener

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

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