If i throw a custom ApplicationException from a business method in Entity bean which is participating in a transaction, would the transaction be rolled back by container. Does container rolls back transaction only in case of SystemExceptions


Answer posted by Mohan on 2005-05-21 17:21:54: yes the rollback will occur

Showing Answers 1 - 3 of 3 Answers

Mohan

  • May 21st, 2005
 

yes the rollback will occur

  Was this answer useful?  Yes

Denis Wang

  • Jun 30th, 2005
 

For declarative transactions, container will rollback on systemException. Container has no way to know whether a speicific application exception is serious enough to roll back the participated transaction. Use setRollbackOnly() to doom the transaction.

  Was this answer useful?  Yes

hari ambati

  • Oct 25th, 2006
 

We need to call explicitly.setRollback() Method to roll back the transaction in this. Container calls this automatically in case of system exception or system crashes.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions