We use NHibernate with DTC and Rhino Service Bus a lot, but I don't think
they worked out most of the kinks with DTC until NH v3. We don't use Rhino
Commons so I'm not too sure what you would need to do to make it work.

On Thu, Aug 18, 2011 at 1:23 AM, Mauro D. <[email protected]> wrote:

> 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.
>
>

-- 
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.

Reply via email to