Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How to implement DTC in .NET
How to implement DTC in .NET ?
✍: Guest
DTC is implemented using COM+.
Following are the steps to implement COM + in .NET :-
ã gEnterpriseServiceh namespace has all the classes by which we can implement DTC
in .NET. You have to add reference gEnterpriseServiceh namespace.
omits it all together, then we would need to manage the transaction manually. To
manually control the transaction you will need to use the ContextUtil class and its static
members. Following is small snippet of ContextUtil: -
public void SampleFunction() { try { // Do something to a database // ... // Everything okay so far Commit the transaction ContextUtil.SetComplete(); } catch(Exception) { // Something went wrong Abort and Rollback the Transaction. ContextUtil.SetAbort(); } }
ã Component derived from gServicedComponenth should be strong named as they
run under COM+.
ã Once the classes are compiled using the string name.Register the Component in COM+
services using
regsvcs c:\DllPath\TransactionComponent.dll
ã You can see that the component is registered using the COM+ explorer.
2007-10-22, 5482👍, 0💬
Popular Posts:
Which JavaScript file is referenced for validating the validators at the client side ? WebUIValidati...
What is normalization? What are different types of normalization? It is set of rules that have been ...
How To Select Some Rows from a Table? - MySQL FAQs - SQL SELECT Query Statements with GROUP BY If yo...
What are database triggers? How are the triggers fired? Read this collection of questions and answer...
Can you explain why your project needed XML? Remember XML was meant to exchange data between two ent...