Archived

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

Properties for the callback demo

Hi!

I am studing the callback demo. Where/when are the properties used by this demo defined? Is there a general cofig file for all the demos?

I can see that the code reads the "Callback.Client.Callback" property. The documentation mentiones using configuration files or the command line to pass properties to an app. I neither have the ICE_CONFIG environment variable set, nor do I use parameters on the command line when I test the application, and still the property is read at runtime.

So it must come from somewhere.

Thanks for clarifying this,
Catalin

Comments

  • benoit
    benoit Rennes, France
    The client is an Ice::Application and the Ice::Application will read the "config" file in the current directory to get its configuration, from the Client.cpp main function:
    int
    main(int argc, char* argv[])
    {
    CallbackClient app;
    return app.main(argc, argv, "config");
    }

    Hope this helps to solve the magic ;)

    Benoit.