-
Apr 18th, 2012, 06:58 AM
#1
Help Required on Spring-Batch Transaction Mgmt at batch Job level
Hi,
I am new to spring-batch framework. I am facing some issues like
I need to implement transaction management at spring-batch job level that means
1) The transaction need to be start when spring batch job has started
2) Once spring batch job completed the transaction need to commit/rollback as per status.
Requirement :
1) Start the transaction
2) Run the below job
<batch:job id="DDASystemEventJob" job-repository="jobRepository" restartable="true">
<batch:step id="step1" next="step2">
<batch:tasklet ref="read-records-tasklet" transaction-manager="transactionManager"></batch:tasklet>
</batch:step>
<batch:step id="step2" next="step3">
<batch:tasklet ref="update-records-tasklet" transaction-manager="transactionManager"></batch:tasklet>
</batch:step>
<batch:step id="step3">
<batch:tasklet ref="delete-unncessary-records" transaction-manager="transactionManager"></batch:tasklet>
</batch:step>
</batch:job>
3) Commit/Rollback Transaction as per status
Please let me know, what configuration is required to implement above transaction mgmt at spring batch job level.
Thanks,
VHR
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules