Announcement Announcement Module
Collapse
No announcement yet.
Spring batch with Hibernate 3.2 rollback example Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring batch with Hibernate 3.2 rollback example

    Hi all,

    I am using Spring batch 2.0 with hibernate 3.2.
    But I can not configure in such a way that if exception happen in writer layer rollback will happen. How to configure it?
    Can somebody please provide some code from scratch on how to do it?

    It will be very helpful to me.


    Thanks in advance,
    Kousik

  • #2
    Nothing special about that. Did you look at the hibernateJob sample (https://src.springframework.org/svn/...rnateJob.xml)?

    Comment


    • #3
      Hi Dave,

      Thanks for your reply.
      Would you please tell is it enough to rollback as well as skipping exception(RuntimeException) for that record but continuing with next records onwards?

      Thanks in advance,
      Kousik

      Comment


      • #4
        Like I said "nothing special about that".

        Comment

        Working...
        X