Apr 27th, 2011, 08:50 AM
Spring batch newbie question
I am investigating using Spring Batch for a simple single threaded job that reads from a flat file and inserts records into a database. I want to trigger the spring batch job from an existing, struts based web app. My question is can I deploy the batch job as part of my existing struts app or does it need to be deployed as a completely separate application? Can I trigger the job via an http request from a struts action?
Last edited by frank12345; Apr 27th, 2011 at 09:22 AM.
Apr 28th, 2011, 01:23 AM
Why wouldn't you be able to do that. Just get a reference to the joblauncher, and kick of the job. It doesn't matter if it is struts, spring mvc, wicket, command line... All that matters is the joblauncher.