Wednesday, July 2, 2008

How many types of Transaction are there in COM+ .NET?

There are 5 transaction types that can be used with COM+. Whenever an object is registered with COM+ it has no abide either to these 5 transaction types. Disabled: There is no transaction. COM+ does not provide transaction support for this component. Not Supported: Components does not support transactions. Hence even if the calling component in the hierarchy is transaction enabled this component will not participate in the transaction. Supported: Components with transaction type support will be a part of the transaction. This will be only if the calling component has an active transaction. If the calling component is not transaction enabled this component will not start a new transaction. Required: Components with this attribute require a transaction i.e. either the calling should have a transaction in place else this component will start a new transaction. Required New: Components enabled with this transaction type always require a new transaction. Components with required new transaction type instantiate a new transaction for themselves every time.