Archived

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

Does property file support include or import?

In property file, There are a lot of IP properties, I must changed every time when the IP is changed;.
Does the file support a method to change the IP address in a central position?
for example,
I can set the ip property in a dedicated file and include the file in the config file.

Or have any excellent method?

Comments

  • benoit
    benoit Rennes, France
    Hi,

    Property files don't support an inclusion mechanism or property references.

    Did you consider using IceGrid for managing the deployment of your Ice application? IceGrid significantly simplifies the configuration of the addressing information. The location mechanism it implements is conceptually similar to the DNS service (clients/servers use a service at a given address/port to resolve the adresses of Ice servers).

    Cheers,
    Benoit.
  • benoit
    benoit Rennes, France
    Note that it's also possible to specify or load multiple property files.

    You can provide a list of comma separated files to the --Ice.Config command line option (see here). Your program can also use the Ice::Properties::load method to load additional property files programmatically.

    For more information, see Properties and Configuration in the Ice manual.

    Cheers,
    Benoit.
  • Thanks for your reply。

    Thanks for your reply。