Home Help Center

Does property file support include or import?

fisherheartfisherheart Member Jinguo.YinOrganization: CreateITProject: Govenment
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

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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.
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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.
  • fisherheartfisherheart Member Jinguo.YinOrganization: CreateITProject: Govenment
    Thanks for your reply。

    Thanks for your reply。
Sign In or Register to comment.