• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate exception causes Jboss to rollback

 
Meghna Bhardwaj
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI All,

I am trying to save name, address, email information using Hibernate in 1 transactrion...sometimes there is an exception thrown by Hibernate, this causes JBoss to rollback the full transaction, even though I have a catch for the hibernate exception.

I would like for just the bad data for example email to not be saved to the database and the other fields to be saved. If there is a Hibernate exception saving email... then I just want the email bit to rollback not the entire, name, address, email to rollback -which is what JBoss does. Does anybody have any suggestions as to how I can implement this? Please provide code sample if possible

Many thanks.
 
Rahul Babbar
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please post your code?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic