The following configuration works, my stored proc gets called, but the exception it raises are lost, and so am I currently )Code:
lt;jcl:job id=quot;mergeAREStagingJobquot;gt;
lt;jcl:step id=quot;mergeCDBStagingStepquot; next=quot;mergeOMSStagingStepquot;gt;
lt;jcl:tasklet ref=quot;mergeCDBStagingTaskletquot; /gt;
lt;/jcl:stepgt;lt;/jcl:jobgt;
lt;bean id=quot;mergeCDBStagingTaskletquot;
class=quot;org..batch.core.step.tasklet.MethodInvokingTaskletAdapterquot;gt;
lt;property name=quot;targetObjectquot; ref=quot;cdbStagingJdbcCallquot;/gt;
lt;property name=quot;targetMethodquot; value=quot;executequot; /gt;
lt;/beangt;
lt;bean id=quot;cdbStagingJdbcCallquot; factory-bean=quot;cdbStagingJdbcCall2quot; factory-method=quot;withProcedureNamequot;gt;
lt;constructor-arg value=quot;SP_MERGE_CDB_STAGINGquot;/gt;
lt;/beangt;
lt;bean id=quot;cdbStagingJdbcCall2quot; factory-bean=quot;simpleJdbcCallquot; factory-method=quot;withCatalogNamequot;gt;
lt;constructor-arg value=quot;MERGE_ARE_STAGINGquot;/gt;
lt;/beangt;
lt;bean id=quot;simpleJdbcCallquot; class=quot;org..jdbc.core.simple.SimpleJdbcCallquot;gt;
lt;constructor-arg ref=quot;stagingDataSourcequot;/gt;
lt;/beangt;
Any ideas ?
Exceptions in tasklets lead to a FAILED status in your step and job executions (with a stacktrace in the ExitStatus). If you want to propagate it, you have to look at the JobExecution when it comes back from the JobLauncher. |