File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transaction rollback in servlet

 
pawankum
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends
plz help me out!
i m entering data in 6 table thru a html form, i want that if there is a failure in between updating the tables the transaction shud be roll back. i have turned off the autocommit and use addBatch(sql) to add all sql statments and then executeBatch() and after that connection.commit(). this is working fine a standalone application but it is not working in servlets.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic