O'Reilly logo

Delphi for .NET Developer’s Guide by Xavier Pacheco

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

Client Activation

The BankManager service shown in Chapter 29 is an example of a Server Activated Object (SAO).

Although SAOs are sufficient for most uses, they have a number of restrictions:

  • SAOs don’t enable clients to control when they are created.

  • They are either just shared (singleton) or created on demand (per-call).

  • SAOs don’t enable per-client state to be preserved between subsequent method calls.

  • You can only create SAOs using the default constructor.

There are cases in which these limitations are too restrictive.

Client activated objects (CAOs) provide you with an alternative solution. Client activation allows you to

  • directly control when remote objects are created

  • provide each client with a unique copy of the object and thus allow per-client ...

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