Originally posted by Severin St�ckli:
Hi Marc,
If I understood your question right you expect a "TransactionRolledBackException" in each case the transaction rolls back. That's not true. Even for CMP, the spec in 18.3.6 says:
However, the Container should not throw the java.rmi.RemoteException or
javax.ejb.EJBException if the Container performs a transaction rollback because the instance
has invoked the setRollbackOnly() method on its EJBContext object. In this case, the Container
must rollback the transaction and pass the business method result or the application exception
thrown by the business method to the client.
So it is possibel to rollback a transaction without exception. Or did I undestand you wrong?
Severin
Thank you Severin, this is exactly the answer that I was looking for.
Marco Tedone<br />SCJP1.4,SCJP5,SCBCD,SCWCD