Solved

Spring Batch application

Posted on 2013-11-08
1
372 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 81
topping3 challenge 14 70
difference of if loops 23 43
varialbe initialization 11 30
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

863 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

17 Experts available now in Live!

Get 1:1 Help Now