Wednesday, July 13, 2005

Promotion in .NET Framework 2.0

The .NET Framework 2.0 there are two new types of Transaction Manager. They are Lightweight Transaction Manager (LTM) and the OleTx Transaction Manager.
LTM is used to manage transactions inside a single app domain using a single connection. OleTx Transaction Manager is used across app domain and also if transaction involves more than one resource within the same app domain.
A developer can code against the System.Transaction namespace without worrying about the transaction manger to use since there is something called promotion. Promotion involves assigning the correct Transaction Manager to your code without explicitly defining one.
When a transaction starts of it is LTM, but based on certain criteria it would automatically trigger a OleTx Transaction Manager. The criteria's are the following.
- Calls to SQL Server 2000 and other databases.
- When a second connection is open to SQL Server 2005
- When the Transaction is serialized

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home