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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.