Servant Locator POA

The second kind of ServantManager object is a ServantLocator. A servant locator is used in conjunction with a POA that has no active object map. Instead of recording the association between ObjectIds and servants statically in an active object map, a servant locator is used to map dynamically between ObjectIds and servants—shown schematically in Figure 7.3(c).

Recall two major responsibilities of the POA, mentioned at the beginning of this chapter:

  • Locating a servant object to service each incoming invocation request.

  • Invoking the appropriate operation on the servant object as given in the invocation request.

When a servant locator is used, responsibility for locating a servant is delegated entirely to the ServantLocator object. ...

Get Pure CORBA 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.