Results 1 to 2 of 2

Thread: Spring batch Struts integration

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Posts
    2

    Default Spring batch newbie question

    Hello,

    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?

    Thanks!
    Frank
    Last edited by frank12345; Apr 27th, 2011 at 09:22 AM.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,628

    Default

    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.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •