Announcement Announcement Module
Collapse
No announcement yet.
JobExecutionContext and StepExecutionContext shared Between threads Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #2
    Are you using 2.1.0 or a minor version past that?

    Comment


    • #3
      Thanks for your reply Mminella.

      Yes We are using 2.1.0

      Sorry for the late reply.

      Comment


      • #4
        The reason I asked is, as you point out, that issue was addressed in 2.1.1. Have you tried upgrading yet?

        Comment


        • #5
          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?

          Comment

          Working...
          X