This content has been marked as final.
Show 2 replies
-
1. Re: URGENT! encapsulate two entity beans in one transaction
annegret Apr 5, 2002 6:16 AM (in response to eldonti)Hi,
the transaction will be rolled back automatically if the entitybean throws an Exception inherited from java.rmi.RemoteException.
If the thrown Exception does not inherit from java.rmi.RemoteException You can call the method setRollbackOnly() on the EJBContext before throwing the Exception to mark the transaction for rollback.
See EJB-spec chapters "Support for Transactions" and "Exception handling"
Annegret -
2. Re: URGENT! encapsulate two entity beans in one transaction
eldonti Apr 5, 2002 11:01 AM (in response to eldonti)thx a lot!! I could finaly manage this problem and I know now both way to do it CMP and BMP :)
the link to the project for thoes who are interessted
http://www.hta-bi.bfh.ch/Projects/aaps/