Regular |
|
Joined: Fri Jun 11, 2004 6:27 am Posts: 81 Location: Yaroslavl, Russia
|
Currenlty NH's transaction is realized in only one flavor - as a wrapper for ADO.NET transaction. So if you will start distributed transaction and then try to open ADO.NET transaction you will most likely get an error.
From other hand, you are not obligated to use NH transaction at all. You just have to be aware of possible caching problems if your distributed transaction being rolled back. I mean, that your transaction could span several sessions (or session flushes) and each of them would think that flushing was completed successfully.
Another issue you have to know of - the connection to the database must be either opened after the start of a distributed transaction, or you have to manually enlist it in the transaction.
_________________ Best,
Andrew Mayorov // BYTE-force
|
|