Announcement Announcement Module
Collapse
No announcement yet.
Help Required on Spring-Batch Transaction Mgmt at batch Job level Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
Working...
X