Archived

This forum has been archived. Please start a new discussion on GitHub.

createObjectAdapterWithEndpoints: purpose of 'name' argument

Just out of curiosity, what exactly is the purpose of the name argument in the method Ice::Communicator::createObjectAdapterWithEndpoints? The documentation is unclear about this.

Comments

  • mes
    mes California
    Hi Peter,

    The name argument uniquely identifies an adapter within its communicator. This name is also used for configuration purposes. For example, when you call createObjectAdapter("AdapterName"), the adapter determines its endpoints using the configuration property AdapterName.Endpoints. Although the operation createObjectAdapterWithEndpoints allows you to specify the adapter's endpoints directly, the adapter supports many other configuration properties in addition to its endpoints.

    Hope that helps,
    - Mark