In that case you shouldn't have any problems. Have you created an implementation of IMessageModule to start and end your unit of work? The article below describes this.
http://msdn.microsoft.com/en-us/magazine/ff796225.aspx On Fri, Aug 19, 2011 at 12:20 AM, Mauro D. <[email protected]> wrote: > I have changed NH dependency in Rhino.Commons in order to use NH 3.1. > > I'll try other ways in order to make it work. > > On 19 Ago, 01:32, Corey Kaylor <[email protected]> wrote: > > 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. > > -- 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.
