Avatar of royjayd
royjayd
 asked on

new to spring batch

hi guys

I have defined my spring batch job like this in my spring config file:

      <batch:job id="runBatchStockjob" restartable="false">
      <batch:step id="step">
      <batch:tasklet>
      	<batch:chunk reader="stockBatchReader" processor="stockBatchProcessor" writer="stockBatchWriter" 
      	commit-interval="50"/>
      </batch:tasklet>
      </batch:step>
      </batch:job>

Open in new window


How do i invoke/run the above batch process?
I am not using any server, just running individual java processes.
I have my  spring config file which contains my beans and the above batch job definition.

Any answers will be appreciated.
thanks.
Java

Avatar of undefined
Last Comment
girionis

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
girionis

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Your help has saved me hundreds of hours of internet surfing.
fblack61