Hi all,
A have a question regarding the use of transactions. Is it safe to have several (non simultaneous) transactions in the scope of the same session ? I have serched the forums and the first conclusion would be - yes, it is possible - but we have a problem which we are thinking is related to this issue. The problem is that it is possible to have several transactions which are commiting themselves but in our case we would like to continue with the next transaction even if the previous one was rolled back. The problem here is that the session is never flushed on rollback and it seems that the database operations are still performed on the next transaction commit. A manual flush before the rolback solves this problem but it seems to be a little bit expensive. Is it possible/sane to have a possiblity to clear the session (manually or even better - automatically) on rollback ?
Thanks,
Peter.
|