File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
spring-batch-core/src/main/java/org/springframework/batch/core/launch/support Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,13 @@ public void afterPropertiesSet() throws Exception {
83
83
DefaultTransactionAttribute transactionAttribute = new DefaultTransactionAttribute ();
84
84
Method stopMethod = TaskExecutorJobOperator .class .getMethod ("stop" , JobExecution .class );
85
85
Method abandonMethod = TaskExecutorJobOperator .class .getMethod ("abandon" , JobExecution .class );
86
+ Method recoverMethod = TaskExecutorJobOperator .class .getMethod ("recover" , JobExecution .class );
86
87
((MethodMapTransactionAttributeSource ) this .transactionAttributeSource ).addTransactionalMethod (stopMethod ,
87
88
transactionAttribute );
88
89
((MethodMapTransactionAttributeSource ) this .transactionAttributeSource )
89
90
.addTransactionalMethod (abandonMethod , transactionAttribute );
91
+ ((MethodMapTransactionAttributeSource ) this .transactionAttributeSource )
92
+ .addTransactionalMethod (recoverMethod , transactionAttribute );
90
93
}
91
94
}
92
95
You can’t perform that action at this time.
0 commit comments