wood burning stoves
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 REST with Spring (video course) this week in the Spring 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]
subject: Transaction RolledBackLocal Exception
It's not a secret anymore!