adamsaghy commented on code in PR #6069:
URL: https://github.com/apache/fineract/pull/6069#discussion_r3630946421


##########
fineract-provider/src/main/java/org/apache/fineract/cob/loan/LoanCOBWorkerConfiguration.java:
##########
@@ -106,8 +108,13 @@ public Step loanCOBWorkerStep() {
                 .listener(cobWorkerStepListener()) //
                 .transactionManager(transactionManager);
 
+        // Batch 6's chunk-oriented step no longer scans item components for 
step-listener
+        // annotations, so register the reader and processor as 
StepExecutionListeners explicitly
+        stepBuilder.listener(cobWorkerItemReader());
+        stepBuilder.listener(cobWorkerItemProcessor());
+
         if (propertyService.getThreadPoolMaxPoolSize(LoanCOBConstant.JOB_NAME) 
> 1) {
-            stepBuilder.taskExecutor(cobTaskExecutor());
+            stepBuilder.taskExecutor((AsyncTaskExecutor) cobTaskExecutor());

Review Comment:
   This is not necessarily true...



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to