Announcement Announcement Module
No announcement yet.
Use case for spring batch? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Use case for spring batch?


    I'm currently investigating the best approach for a project. The overview / flow is:

    1. User submits a request for processing, which gets stored in a database

    2. Those should be inspected by code responsible for executing new batch jobs. This code is responsible for ensuring only X number of jobs are currently executing prior to starting new jobs.

    3. A batch job would be launched, using the parameters of the request.

    4. We would like to utilize the restart capability of spring batch, the data about the batch jobs it stores, the retry template, etc.

    I think what it boils down to is does spring batch provide any mechanism to pull requests off the "queue" and manage the amount of running jobs or would this be custom code?

    Custom code is fine, just want to be sure this isn't already provided.


  • #2
    It's not provided by Spring Batch. Right now (pre 1.0) Spring Batch Admin has some global synchronization support (through an aspect), but not the persistent queue. Probably support for work queues will be added after 1.0, but please raise an issue (BATCHADM) if you want to discuss the priority.