O'Reilly logo

Microsoft® Visual J#™ .NET (Core Reference) by John/Longshaw, Andy Sharp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required