This content has been marked as final.
Show 3 replies
-
1. Re: Transaction demarcation (SeamPhaseListener)
gavin.king Feb 2, 2008 4:20 AM (in response to sebastiendeg.sebastien.degardin.gmail.com)Well, I would say
yes
, because I think that all data access should happen inside transactions, but I know of other people who disagree with this and believe it is OK to do read-only data access outside of a transaction. -
2. Re: Transaction demarcation (SeamPhaseListener)
christian.bauer Feb 2, 2008 5:30 PM (in response to sebastiendeg.sebastien.degardin.gmail.com)There is no 'outside of a transaction'. What Gavin means is that sometimes it is OK to read data with auto-committed transactions, but if you want to keep your web-application maintainable, you better not do it. The story is different for two-tier clients that access a database server without middle tier: http://www.hibernate.org/Documentation/NonTransactionalDataAccessAndTheAutoCommitMode
-
3. Re: Transaction demarcation (SeamPhaseListener)
sebastiendeg.sebastien.degardin.gmail.com Feb 5, 2008 1:35 PM (in response to sebastiendeg.sebastien.degardin.gmail.com)Thanks !
That's right, there is no write expected, but, isolation could be an important issue.
Cheers,