Hi all, like the subject i'm using Rhino.ESB and multiple
sessionfactory.
Using this snippet:
using
(UnitOfWork.Start(UnitOfWorkNestingOptions.CreateNewOrNestUnitOfWork))
{
using (var tx =
UnitOfWork.Current.BeginTransaction(IsolationLevel.ReadCommitted))
{
var statiDetailNotDone =
UnitOfWork.CurrentSession.QueryOver<StatoReteDetail>()
.Where(x => !
x.Done).RowCountInt64();
tx.Commit();
}
}
I end up with a SqlException like
"distributed transaction completed. either enlist this session in a
new transaction or the null transaction"
I'm not able to find the error.. it seems that TransactionScope used
by Rhino.ESB cause some problems with NH transactions and
RhinoTransaction used.
--
You received this message because you are subscribed to the Google Groups
"Rhino Tools Dev" 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/rhino-tools-dev?hl=en.