File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes transaction issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "transaction issue" Watch "transaction issue" New topic

transaction issue

rose deng
Ranch Hand

Joined: Dec 29, 2000
Posts: 78
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

Joined: Jul 18, 2001
Posts: 2712
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.
I agree. Here's the link:
subject: transaction issue
jQuery in Action, 3rd edition