This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am new to spring and spring batch
I have a requirement to use spring batch to acheive the below things
1.Poll a mail box at regular intervals.
2.Whenever there is a new email in Inbox, irrespective of subject or attachment, place the attachment(if present) in the email into a folder path.
3.Write the details (Time, name of file) into a control table.
I could find many example in javamail api but couldnot find it using springbatch.
Please help me with some sample to acheive it or should i go to spring integration.
Well to put it in perspective. They are both operate the exact same regardless of environment. Meaning the code to get the mail and do things with the mail is the exact same whether running in a stand-alone application or in a web application or in a Spring Batch batch job.
What I think you need to look and learn is Spring Batch. Their documentation is actually really good. But you will also have to learn Spring first.
In the end Spring Batch code is a POJO in which you can write code to read an email and do your work just like in a POJO.