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 EJB Transactions Question 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 "EJB Transactions Question" Watch "EJB Transactions Question" New topic

EJB Transactions Question

john appadam

Joined: Jun 13, 2011
Posts: 5
What exception should be thrown to break a transaction in EJB?
Piotr Nowicki
Ranch Hand

Joined: Jul 13, 2010
Posts: 610

What Transaction Management do you use?

Basically, the SystemException is used to roll back the transaction.
You could also use an ApplicationException with explicitely marked 'rollback' attribute to rollback the transaction.

Hope that helps.

I agree. Here's the link:
subject: EJB Transactions Question
It's not a secret anymore!