This content has been marked as final.
Show 2 replies
-
1. Re: Container Managed Transactions and MySQL/InnoDB
darranl Jan 14, 2005 12:45 PM (in response to gseel)The SQLException that is being thrown is a checked exception that you must be handling within a catch block in your code. This in itself is not enough to cause a transaction to be rolled back.
When you catch the SQLException You can either call setRollbackOnly() on the SessionContext that was passed into your session bean, or you can throw a RuntimeException from the business method of your session bean. -
2. Re: Container Managed Transactions and MySQL/InnoDB
gseel Jan 14, 2005 3:58 PM (in response to gseel)That sorted it. Many thanks.