In this post under Spring Batch, I will explain with an example how to use Spring Batch provided ExceptionClassifierSkipPolicy class. ExceptionClassifierSkipPolicy will not contain the logic of how to handle exceptions when thrown. Instead it is a delegator class which passes the exceptions thrown to appropriate exception handling SkipPolicy classes. ExceptionClassifierSkipPolicy will contain a map…… Continue reading ExceptionClassifierSkipPolicy example
Month: March 2020
Setting JMS message priority
In this post under JMS, I will show with example how to set the priority of JMS messages before sending them. Note: I will be using JMS 2.0 api for this and future examples. JMS defines a ten level priority with 0 as the lowest priority and 9 as the highest. 0-4 is a normal…… Continue reading Setting JMS message priority
Configuring Multiple SkipListeners
In this post under Spring Batch, I will show with example how to configure multiple Skip listeners. In my previous post, I showed how to configure a bean as skip listeners. For recap purpose below is the xml for your reference 1 <bean id=”mySkipListener” class=”package25.MySkipListener”/> 2 3 <batch:job id=”importEmployees”> 4 <batch:step id=”readWriteEmployees”> 5 <batch:tasklet> 6…… Continue reading Configuring Multiple SkipListeners
QueueBrowser Example
In this post under JMS, I will explain with an example what is QueueBrowser and how to use it. Note: I will be using JMS 2.0 api for this and future examples. The name “QueueBrowser” implies two things 1) It can be used only for queue that means in point to point messaging model. 2)…… Continue reading QueueBrowser Example