Results 1 to 3 of 3

Thread: User defined Job id in spring batch

  1. #1
    Join Date
    Jan 2013
    Posts
    2

    Question User defined Job id in spring batch

    Hi All,

    We are developing an application, where we will be creating the application Job ID using a shell script. We need to pass this shell script generated job id to spring batch, so that the job instance should have same job id as application job id.

    Can any one tell me whether its possible in spring batch / how can we achieve this?

    Rgds
    Bala
    Last edited by bala_muthu; Jan 22nd, 2013 at 03:26 AM.

  2. #2
    Join Date
    Sep 2008
    Location
    Chicagoland, IL
    Posts
    349

    Default

    This is not possible within Spring Batch currently without extending a number of components. What is the significance to a custom generated job name? What is the use case you are attempting to solve?
    Michael Minella
    Spring Batch Lead
    Author - Pro Spring Batch
    http://www.michaelminella.com
    Twitter: @MichaelMinella

  3. #3
    Join Date
    Jan 2013
    Posts
    2

    Default

    Hi mminella,

    Application is doing validation of the input before getting the job id. These process logs should also be recorded and the log file name should have the job id generated by spring batch. So we planned of having a Job id common and put that into spring batch.

Posting Permissions

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