How to call a stored procedure from a Spring Batch Tasklet?
It is mentioned that a TaskletStep in Spring Batch can be used to call a stored procedure. Could anyone provide an example of how to invoke a Stored Procedure from a TaskletStep? So far I have done this but it throws an exception saying "Configuration problem: The element [callStoredProcedure] is unreachable" <job id="job1"> <step id="step1"> <tasklet ref="myTasklet"/> </step> </job> <bean id="myTasklet" class="MyClass"> <property name="dataSource" ref="dataSource"/> <property name="sql" value="call stored_procedure()"/> </bean> Java Class class MyClass implements Tasklet{ @Override public Rep
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.