This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "transaction issue" Watch "transaction issue" New topic
Author

transaction issue

rose deng
Ranch Hand

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

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: http://aspose.com/file-tools
 
subject: transaction issue
 
Similar Threads
Transaction-propagation
How to update row in CMP
Updating Row in Database thru BMP
setRollbackOnly not working
How to combine JDBC & EJB in one transaction?