In my read-only transactions, I read data from
multiple tables, and I want to get a consistent view (I don't want other
transactions which are not read-only to modify data between 2 reads from 2
different tables). Setting the transaction read-only is supposed to give hints
to the database/driver that I am not modifying anything, so it can perform
transactions optimizations.
Basically what I need to do is to get a reference
to the current connection being used by DAOs and sqlMap and call
setReadOnly(true) on it.
Thanks,
Florin
|
- Re: How to set the connection read-only? Florin Manolache
- Re: How to set the connection read-only? Florin Manolache
- How to connect to database using JNDI amit . rogye
- Re: How to set the connection read-only? James, Steven