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

Problem with @Transactional (Transaction is not getting rollbacked)

 
upendra sharma
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been using Transaction managment using spring. When i use Propagation.MANDATORY then it gives the following exception:


I have three layers in my application, Action , Service and Dao Layer. I have generated the Arithmetic Exception in the Service Layer but even after using Transactional annotation , the entries in the database are not getting rollbacked. Below is the method in which exception is generated. This method belongs to service layer. The above exception can be removed if i use @Transactional in the action class then it generates the ArithmeticException but still the entries have been done in the database table. Rollback is not done. BOException and DAOException are user defined exception. Please help.

 
Miku Ranjan
Ranch Hand
Posts: 98
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You are using which version for spring and hibernate.
 
upendra sharma
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi. I am using spring 3.0, Struts 2 and Hibernate 3.0.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic