This content has been marked as final.
Show 2 replies
-
1. Re: Transaction not rolling back in CONTAINER mode
jaikiran Oct 5, 2007 11:03 AM (in response to umberto_soprano)Are you using a transaction aware resource (i.e. a datasource) for doing the inserts? You can configure a datasource and obtain a connection from that and do your JDBC operations. The datasource will be enrolled in the transaction by the bean and if there is any exception, then the changes will be rolled back.
-
2. Re: Transaction not rolling back in CONTAINER mode
umberto_soprano Oct 8, 2007 5:01 AM (in response to umberto_soprano)Yes, I lookup for a Datasource to get Connections. Otherwise the transaction wouldn't roll back in BEAN mode as well.
The question is why rollback works within BEAN mode and not in CONTAINER mode.