Solved

Spring Batch application

Posted on 2013-11-08
1
371 Views
Last Modified: 2013-12-24
Hi,
I have a simple application thats i wrote.  This application is launched via Control-M so essentially its a job that runs on a scheduler...

I wrote it in java.  I would re-write it using spring batch.  I've never worked with spring batch before so i would just like to quickly break down what my current application does and see which components / parts of it i can convert using spring batch.

Process (very straight forward - 6 steps):
1 go to ftp
2 grab files
3 read lines in file
4 convert each line into some type of records
5 do some data manipulation with the records
6 create Json strings and send them further into the pipeline.

thats it.  this job is called at a certain time and runs daily.

Which part of this can i modify to use spring batch? - From what i've read, i can convert step 1, 2, 3.  Am i right or is spring batch more powerful and can do more?

Thanks,
0
Comment
Question by:Squadless
1 Comment
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
ID: 39636537
Yes, Spring Batch can probably do 1, 2, 3 out of the box, with no coding on your part, just configuration. But it is highly likely that it can do the rest, just that you need to code the important parts yourself, ie. the actual code to do the conversion of lines of the file and the data manipulation. What Spring Batch provides though is the framework around such things, so you don't have to worry about coding the scheduling, or the pipeline between stages, or the retry handling, etc, etc. You just have to code the pure business logic, and then pass that to Spring Batch for it to manage the job, and the steps in the job.

If you are after advice on how to use it for specifically for your situation, then you would need to provide a bit more detail about the steps that you have listed.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now