Tarun Sapra
Tarun Sapra

Reputation: 1901

Spring batch jobs from Web ui?

Has anyone worked or has any experience with executing spring batch jobs from web UI. Currently I have written few jobs for data-copy from CSV to DB table, it runs fine from command prompt and in a JUnit test. But now these jobs have to be executed through web, JSF is being used as the front controller framework. Any suggestions about the best practices in this case would be very helpful.

Thanks!

Upvotes: 2

Views: 12232

Answers (1)

Sathish
Sathish

Reputation: 21080

Spring Batch Admin is a deployable web frontend for your Spring Batch jobs. If all you want is a simple UI instead of a shell script for Administrators, take this approach:

http://static.springsource.org/spring-batch-admin/getting-started.html

If you're looking for a way to integrate the job trigger mechanism with your existing application, look at this implementation using Spring's JobLauncher which can be invoked from Controller/Servlet:

http://docs.spring.io/spring-batch/trunk/reference/html/configureJob.html#runningJobsFromWebContainer

Upvotes: 5

Related Questions