Results 1 to 4 of 4

Thread: Spring batch with Hibernate 3.2 rollback example

  1. #1

    Default 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. #2
    Join Date
    Jun 2005
    Posts
    4,241

    Default

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

  3. #3

    Default

    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

  4. #4
    Join Date
    Jun 2005
    Posts
    4,241

    Default

    Like I said "nothing special about that".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •