[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Spring Batch application

Posted on 2013-11-08
1
Medium Priority
?
381 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 36

Accepted Solution

by:
mccarl earned 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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 one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month19 days, 13 hours left to enroll

872 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