Uploading Job Configurations to Spring Batch Admin |
|

An interesting problem that has no universal good solution is: how do I change the configuration of a running Spring application? Spring Batch Admin 1.0.0.M3 was released recently, and it has a configuration upload feature that solves this problem in a particular way. Someone asked for this feature at the recent S2GForum in Munich (if you missed that sign up for events in London and Amsterdam in May), and I was happy to tell him that it already existed, so maybe it deserves a bit more air time…
Screenshots of the Basic Use Case

We start with a look at the Jobs view in the application. It shows a list of jobs that are either launchable or monitorable by the web application.
Now the plan is to upload a new

We press the "Upload" button and the configuration is uploaded and parsed and the

You can see a new entry in the job registry ("test-job") which is launchable in-process because the application has a reference to the
Variant of the Basic Use Case
A common variant of the basic upload use case is to upload a modification of an existing
How Does it Work?
The secret to the implementation of this use case is that
What Next?
Visit the Batch Admin website for more information and to find out where to get the code to play with. Remember the S2GForum events coming up in London and Amsterdam in May, where the application will be discussed and demo-ed in a session by the Spring Batch and the Spring Integration leads (Dave Syer and Mark Fisher).
Similar Posts
- Introducing Spring Batch Admin
- Running a Spring Batch Job in The SpringSource Application Platform
- Practical Use of Spring Batch and Spring Integration
- Uploading to Amazon S3 using a custom ANT task
- Using Cloud Foundry from STS





Tarun Sapra says:
Added on May 26th, 2011 at 10:04 pmHello Dave,
I had a query, once I upload a XML file containing the Jobs, but suppose the job is to read from CSV file and copy the data into a DB table. So how would the user upload these CSV files that need to be parsed?
Dave Syer (blog author) says:
Added on June 1st, 2011 at 3:08 amInput file upload is supported too through the Files menu. There is a special Resource converter in the default context that will recognise the prefix "files:" (you can copy-paste the unique file name from the web app or JSON service response after the file is uploaded).
Tarun Sapra says:
Added on June 2nd, 2011 at 1:41 amThanks Dave, I have another query, If the user converts the file from CSV to pdf and if I wand to write this PDF file on the servletoutputstream so that the user can save this pdf, then which part of the spring batch admin would I need to customize?
Balaji D says:
Added on October 10th, 2011 at 6:43 amWhen I add a spring batch (upload spring configuration xml), I am not able to see the newly added job under the jobs menu. How should I proceed on this. Can anyone suggest.
I am using version – 1.2.0.RELEASE