Results 1 to 5 of 5

Thread: JobExecutionContext and StepExecutionContext shared Between threads

  1. #1

    Default JobExecutionContext and StepExecutionContext shared Between threads

    Hi All,
    We have batch use case like
    Step1: Register the job once.
    Step2: Launch the same job in different Threads with different job parameters. We have used promotion listener to reuse the value in different steps.

    Now we got an issues like Thread 1 got Thead2's job parameter values.

    we are using Spring Batch 2.1 version and JobRegistry is

    Code:
    <bean id="jobRegistry"
    		class="org.springframework.batch.core.configuration.support.MapJobRegistry" />
    The below JIRA is for the same problem what we have specified?

    https://jira.springsource.org/browse...nel#issue-tabs

    Can you please explain to fix the same?
    I need to update the spring batch version?

    Thanks for your reply in advance.
    Thanks & Regards,
    Arun Duraisamy

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

    Default

    Are you using 2.1.0 or a minor version past that?
    Michael Minella
    Spring Batch Lead
    Author - Pro Spring Batch
    http://www.michaelminella.com
    Twitter: @MichaelMinella

  3. #3

    Default

    Thanks for your reply Mminella.

    Yes We are using 2.1.0

    Sorry for the late reply.
    Thanks & Regards,
    Arun Duraisamy

  4. #4
    Join Date
    Sep 2008
    Location
    Chicagoland, IL
    Posts
    338

    Default

    The reason I asked is, as you point out, that issue was addressed in 2.1.1. Have you tried upgrading yet?
    Michael Minella
    Spring Batch Lead
    Author - Pro Spring Batch
    http://www.michaelminella.com
    Twitter: @MichaelMinella

  5. #5

    Default

    Thanks for your reply Mminella.
    We are discussing for an update on Spring Batch Latest version.
    For this issue can we do some workaround to avoid sharing the execution context between threads?
    Thanks & Regards,
    Arun Duraisamy

Posting Permissions

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