This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Transaction RolledBackLocal Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Transaction RolledBackLocal Exception" Watch "Transaction RolledBackLocal Exception" New topic

Transaction RolledBackLocal Exception

Kevin Bradley

Joined: May 12, 2003
Posts: 11
When & by whom is this exception thrown??
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
The best answer I can give without more details is:
- The exception is thrown by the EJB Container
- The exception is thrown because someone called setRollbackOnly() during the transaction, some bean creation failed, or some other "fatal" error occurred that made the container mark the transaction as rollback only.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: Transaction RolledBackLocal Exception