for what i understand that works only in java becouse in asp.net with
httpmodule we can't do samething as

using(ITransaction t = ***)
{
   ExecuteWebRequest()
   t.Commit();
}

ie at the end of the request we cannot know if we must commit or
rollback becouse we don't know if an exception has been thrown;
so we must always commit if the transaction is active at  request_end
and always remember to wrap every service method that writes data in a
try
{
    daoA.Save...
    daoB.Save..
}
catch
{
  CurrentTransaction.RollBack();
}


 it's more simple to use spring where i only need to set a transaction
(Readonly=false) on the specific methods that calls write operations.

if there's another patter to use transaction per request with only nh-
core that simplify that i'm happy to listen becouse i din't found it

thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to