G
Guest
I have a BO that must call 2 functions each function residing in 2 different
DO.
BO->DO1.Update1
BO->DO2.Update2
Let's say that each DO call point to the same SQL Server.
Let's say that each BO is on my Appserver and the 2 DOs on the SQL Server.
I want to make a transaction so I am assuming that the BO is handling it.
How do I create the transaction and the connections on the BO and DO's
What about .NET Remoting in all this.
If I create a SQLConnection in the BO and pass the SQLTransaction to the DO
and try to enlist the connection(opened in the DO), the EnlistConnection
takes only a transaction object but SqlTransaction cannot be converted to a
Transactions.Transaction type ....
BO.startTransaction
DO1.Update1(tx as sqlTransaction) 'creates its own connection? receives it
from BO?
DO2.Update2(tx as sqlTransaction)
BO.Commit or Rollback
Unfortunately, there is not much information regarding the way to handle
transactions between tiers, all the examples I find are transactions
happenning in the same object.
Thanks for your help.
DO.
BO->DO1.Update1
BO->DO2.Update2
Let's say that each DO call point to the same SQL Server.
Let's say that each BO is on my Appserver and the 2 DOs on the SQL Server.
I want to make a transaction so I am assuming that the BO is handling it.
How do I create the transaction and the connections on the BO and DO's
What about .NET Remoting in all this.
If I create a SQLConnection in the BO and pass the SQLTransaction to the DO
and try to enlist the connection(opened in the DO), the EnlistConnection
takes only a transaction object but SqlTransaction cannot be converted to a
Transactions.Transaction type ....
BO.startTransaction
DO1.Update1(tx as sqlTransaction) 'creates its own connection? receives it
from BO?
DO2.Update2(tx as sqlTransaction)
BO.Commit or Rollback
Unfortunately, there is not much information regarding the way to handle
transactions between tiers, all the examples I find are transactions
happenning in the same object.
Thanks for your help.