Creating a temporary queue or topic

In this post under JMS I will explain how to create temporary queue or topic. Note: I will be using JMS 2.0 api for this and future examples Non temporary queue or topics are created by administrator and we developers connect to those topic or queue using the below method Destination destination = (Destination)initialContext.lookup(“MyQueue”); Whereas…… Continue reading Creating a temporary queue or topic

Sending and Receiving Map data as JMS message payload

In this post under JMS I will explain how to send and receive Java Map data as JMS Message payload. Note: I will be using JMS 2.0 api for this and future examples Below is the complete main class code Main Class 1 package package3; 2 3 import java.util.Properties; 4 5 import javax.jms.ConnectionFactory; 6 import…… Continue reading Sending and Receiving Map data as JMS message payload

Changing Skip Policy to out of box provided skip policies

In this post under Spring Batch, I will explain how to change skip policy to one of out of the box provided skip policies. Whenever we use the “skip-limit” attribute and “skippable-exception-classes” element as shown below at line 4 and 5 <batch:job id=”importEmployees”> <batch:step id=”readWriteEmployees”> <batch:tasklet> <batch:chunk reader=”reader” writer=”writer” commit-interval=”50″ skip-limit=”200″> <batch:skippable-exception-classes> <batch:include class=”org.springframework.batch.item.file.FlatFileParseException”/> </batch:skippable-exception-classes>…… Continue reading Changing Skip Policy to out of box provided skip policies

Setting/Accessing properties of JMS messages

In this post, I will explain how to set and access properties of a JMS messaages. Note: I will be using JMS 2.0 api for this and future examples Below is the complete Main code. Main Class 1 package package2; 2 3 import java.util.Properties; 4 5 import javax.jms.ConnectionFactory; 6 import javax.jms.Destination; 7 import javax.jms.JMSException; 8…… Continue reading Setting/Accessing properties of JMS messages