Thanks for the info Oskar.

Sent from Samsung Mobile



-------- Original message --------
Subject: Re: [nhibernate-development] TransactionScope without explicit NH 
transactions
From: Oskar Berggren <[email protected]>
To: "[email protected]" 
<[email protected]>
CC:





2013/4/18 Roger Kratz 
<[email protected]<mailto:[email protected]>>
Hi

There is a Envers bug reported, https://nhibernate.jira.com/browse/NHE-119, 
saying auditing doesn’t work if TransactionScope is used without explicit NH 
transactions. The reason this doesn’t work in Envers is because Envers is 
relying on ActionQueue.RegisterProcess(afterTranDelegate/beforeTranDelegate) to 
“hook on” transaction events – and these hooks aren’t called when 
TransactionScope is commited.

The reason I send this mail to you is because…

•         Is using TransactionScope without explicit NH transactions even 
supported?

I believe the word on this is still no.

(Though sometimes it works. When the NH transaction is used within 
TransactionScope, all changes would normally be flushed when the NH transaction 
is committed. Without the NH transaction, those changes might not be flushed 
until the ambient transaction enters its prepare phase. I've noted that in some 
circumstances, the flush might now hang and eventually the transaction is 
aborted with a timeout. This is probably different depending on a bunch of 
circumstances. I've seen it with MS SQL 2008 and only if things are done in a 
certain order, something like if NHibernate enlists in the transaction before 
or after it's promoted to a distributed transaction. It's all very frustrating.)

/Oskar


--

---
You received this message because you are subscribed to the Google Groups 
"nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to