Article : COM+ Services Series ( Part - 1 )
Reply
![]() |
|
|
From:
Nasha
|
Hey Group,
Today we are going to discuss COM+ Services. Some of us know COM+ coz we have worked with MTS during our VB days. However COM+ can be used with .NET also. As a developer I have always inquisitive about a lot questions and I am sure that you must also be having these questions in mind. Let us discuss these: -
Why COM+ ?
Well COM+ by itself is a service where you deploy your transaction-based components. Once can say that it is reusable service which can help you in implementing and executing your transactions so that you need not be bothered about the repetitive" transaction execution and management" logic all the time.
What is MTS and what is difference between MTS and COM +?
During our VB days with Win NT one could use COM+ Services with the help of MTS i.e. Microsoft Transaction Server. You needed to explicitly install MTS. After WinNT came Win 2k where it has been an integral part of OS. COM+ services in addition to MTS has come more features like:
Common features in both MTS and COM+:
<o:p></o:p> - Just In Time object activation (JIT)<o:p></o:p>
- Object Pooling<o:p></o:p>
- Transaction Enforcement<o:p></o:p>
- Security
<o:p></o:p> I remember them as JOTS features.<o:p></o:p> New Features in COM+:<o:p></o:p> <o:p></o:p> - Event Support<o:p></o:p>
- Component message queuing<o:p></o:p>
- Component Load Balancing
<o:p></o:p> I remember them as ECC features.
What are Transactions? Are they really necessary? What can they do for you?
Transaction is a set operations that need to work as a unit to either fail or succeed. Whether transactions are really necessary or not totally depends on your requirement e.g. If you are making a banking application where during a Credit transaction money has to be debited from one account and credited to another account. In this scenario it will not work if either debit or credit happens both either need to happen or not. You can also use the ADO or ADO.NET Connection object to execute them under a single transaction.
How do transactions work?
COM+ services are controlled by DTC i.e. Distributed Transaction Coordinator. It is DTC, which takes care of transaction execution and is responsible for commit or rollback. DTC works on a "Two - Phase Commit" protocol. Transaction by itself is a unit containing a number of operations. Two phase commit ensures that the transaction is commit only if each of these operations succeed if any one of these operations participating in the transaction fail, the entire transaction is roll backed completely. Thus protocol ensures a successful commit or a rollback.
Tomorrow we will discuss each of COM+ features in depth. If you have any questions on the basics that we discussed today please post them.<o:p></o:p> -- Please post your queries and comments for my articles in the user group for the benefit of all. I hope this step from my end is helpful to all of us. You can find all articles written by me at my personal Blog http://spaces.msn.com/members/nasha .
Regards,
Namratha (Nasha) <o:p></o:p> <o:p></o:p> |
|
View other groups in this category.
![]() |
To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.
Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.
If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.
|
|