Features of Serviced Components

Now that we’ve covered the bare essentials of implementing a serviced component, it’s worth taking a look at the other features surrounding COM+ development.

Synchronization, Activities, and Context

As you might recall from Chapter 8, multithreaded objects can use synchronization to prevent two concurrent threads from accessing a shared resource simultaneously, possibly corrupting data. This is achieved by controlling, and possibly prohibiting, concurrent calls to methods of the same object. The same feature is available to serviced components, through System.EnterpriseServices.SynchronizationAttribute (not to be confused with System.Run­time.Remoting.Contexts.SynchronizationAttribute, which offers similar functionality ...

Get Microsoft® Visual J#™ .NET (Core Reference) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.