-
Nov 11th, 2010, 01:37 PM
#1
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
-
Nov 15th, 2010, 03:01 AM
#2
Nothing special about that. Did you look at the hibernateJob sample (https://src.springframework.org/svn/...rnateJob.xml)?
-
Nov 16th, 2010, 12:09 PM
#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
-
Nov 16th, 2010, 03:26 PM
#4
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
-
Forum Rules