Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ createAdmin()

ObjectPrx Ice::Communicator::createAdmin ( const ObjectAdapterPtr & adminAdapter,
const Identity & adminId )

Adds the Admin object with all its facets to the provided object adapter.

If Ice.Admin.ServerId is set and the provided object adapter has a Locator, createAdmin registers the Admin's Process facet with the Locator's LocatorRegistry.

Parameters
adminAdapterThe object adapter used to host the Admin object; if it is null and Ice.Admin.Endpoints is set, this function uses the Ice.Admin object adapter, after creating and activating this adapter.
adminIdThe identity of the Admin object.
Returns
A proxy to the main ("") facet of the Admin object.
Exceptions
InitializationExceptionThrown when createAdmin is called more than once.
See also
getAdmin