Servant (CORBA)

From Wikipedia, the free encyclopedia

In CORBA, a Servant is the invocation target, containing methods for handling the remote method invocations. In the newer CORBA versions, the remote object on the server side is split into the Object (that is exposed to remote invocations) and Servant (where the former part delegates the method calls). It can be one Servant per remote Object, or the same servant can support several (possibly all) objects, associated with the given Portable Object Adapter. The Servant for each Object can be set or found "once and forever" (servant activation) or dynamically chosen each time when the method on that object is invoked (servant location). Both servant locator and servant activator can forward the calls to another server. In total, this system provides a very powerful means to balance the load, distributing requests between several machines.

In the object oriented languages, both remote Object and its Servant are objects from the viewpoint of the object oriented programming.