hi,

I would like to know if it makes sense using EnterpriseServices and
System.Transaction together in Whidbey ?.  I would like to use the
automatic promotion of a transaction(1RM) to distributed transaction(2N
RM) but still use the EnterpriseServices programming model.

public void ConfiguredComponent(.....)
{
 try
 {
  using (TransactionScope ts = new TransactionScope()) <----
  {
       update db 1....using ado.net wish ado.net 2.0 would
detect how many RM's and promote the transaction to a dis. tx.

       update db 2....using ado.net ......

       ts.Consistent = true;

       ContextUtil.SetComplete(); <----does this make sense
  }
 }
 catch(.........)
 {
  ContextUtil.SetAbort() <----- nor does this
 }
}


I would like the best of both programming models, but these two
programming models seems orthogonal to me.


I don't know if I made my self clear here....but yes I want Tim Ewald's
rule 6.5 to become obsolete :)

Cheers, @llan

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

Essential .NET: building applications and components with C#
November 29 - December 3, in Los Angeles
http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to