method invocation result gets set as JobExecutionContext result (SPR-5831)
This commit is contained in:
parent
6ee8fbe533
commit
87314b950e
|
|
@ -261,7 +261,7 @@ public class MethodInvokingJobDetailFactoryBean extends ArgumentConvertingMethod
|
|||
@Override
|
||||
protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
|
||||
try {
|
||||
this.methodInvoker.invoke();
|
||||
context.setResult(this.methodInvoker.invoke());
|
||||
}
|
||||
catch (InvocationTargetException ex) {
|
||||
if (ex.getTargetException() instanceof JobExecutionException) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue