Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transaction issue

 
rose deng
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a session bean which will call a couple of classes, and those classes will call different entity bean to do insert or update. The transaction type of session bean and entity bean is required, so i think if any of insert or update action failed, other action that already done is suppose to roll back. But my code doesn't.
Could anyguru tell me the reason and solution?
Thanks a Lot!
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it an Application exception or a System exception that is being thrown? The ejb specification explicitly states that the container should not automatically rollback transactions in the event of an Application exception, this must be handled by the Bean Provider (you).
If the above doesn't help then you will need to fill us in with more details, such as which Application Server you are using.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic