Here is the information I read on the matter
(link<http://blogs.msdn.com/adonet/archive/2008/03/26/extending-lightweight-transactions-in-sqlclient.aspx>).
To be more specific , it seems to only work when the same pooled connection
is returned from the connection pool. So if two connections are open at the
same time it will get promoted. Unless I misread something from the post. So
it appears in order for it to work the flow would occur as follows.

Start TransactionScope
   Open Connection
     Dequeue
   Close Connection - Returning connection to pool
   Begin consumer block
     Open Connection - Returns pooled connection already associated with the
transaction
       Read from db in consumer here
       //sending reply before closing connection would get promoted, unless
the same connection is re-used in code
     Close Connection
     Send Reply
      Open Connection
        Enqueue message to send
      Close Connection
     End Reply
   End consumer block
   Any cleanup message processing
End TransactionScope

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