method invocation result gets set as JobExecutionContext result (SPR-5831)

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1408 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller
2009-06-22 17:52:12 +00:00
parent 0402a1c4aa
commit 27617da6df
@@ -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) {