In this post under Spring Batch, I will explain with example the purpose of CompositeItemWriter and how to use it. In all the previous post’s examples under Spring Batch, I have used only one writer bean. The writer bean’s job was to write the items read to a file as shown below <bean id=”writer” class=”org.springframework.batch.item.file.FlatFileItemWriter”>…… Continue reading CompositeItemWriter Example
Month: July 2020
Sending Email Using SMTP (Approach 1)
In this post under Java Mail. I will show with an example how to send email using Java api and SMTP protocol. Note: For this example and other examples in future we need to have 1) Gmail account 2) GMail SMTP server address 3) Stop the antivirus software running on your local. 4) Create an…… Continue reading Sending Email Using SMTP (Approach 1)
JMSTimestamp Example
In this post under JMS, I will explain about JMSTimestamp with an example Note: I will be using JMS 2.0 api for this and future examples. JMSTimestamp is a header field which is only set by JMS Provider and contains a long value in milliseconds that represents the time when the message was handed over…… Continue reading JMSTimestamp Example