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

Propagate JobOperatorImpl instance to SimpleJobExecutionCallbackService properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.5-incubating
    • 0.6
    • jbatch-core
    • None

    Description

      While testing my code I've figured out that passing an individual JobOperatorImpl instance is not working as expected when using this code snippet:

      final JobOperator operator = new JobOperatorImpl(new ServicesManager() {{
                  init(new Properties() {{
                      setProperty(PersistenceManagerService.class.getSimpleName(), MemoryPersistenceManagerService.class.getName());
                  }});
              }});
      
      

      I'm going to implement a fix as suggested by rmannibucau :

      @chberger
       yes, 
      org.apache.batchee.container.services.callback.SimpleJobExecutionCallbackService#checkIsDone
       must change to use the right joboperator if the joboperator is a 
      JobOperatorImpl. Guess it is just a matter of propagating it at 
      org.apache.batchee.util.Batches#waitFor(javax.batch.operations.JobOperator,
       long)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chberger Christian Berger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m