Uploaded image for project: 'BatchEE'
  1. BatchEE
  2. BATCHEE-115

StepScope blows up with ContextNotActiveException in partitioned batches

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5-incubating
    • 0.5-incubating
    • batchee-extensions
    • None

    Description

      if we use @StepScoped beans or batch artifacts in a partitioned batch we blow up with a ContextNotActiveException.

      Currently the setup of the threads is done via Listeneres but the {{*StepScopeListener}}s gets only called before or after the 'parent' step while the {{*JobScopeListener}}s are called before the start of each partition thread if they are declared in batchee.properties.

      Everything works fine for single threaded batches

      Attachments

        1. BATCHEE-115.patch
          7 kB
          Reinhard Sandtner

        Activity

          People

            rsandtner Reinhard Sandtner
            rsandtner Reinhard Sandtner
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: