Home Help Center

Properties for the callback demo

catalincatalin Member ✭✭

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,


  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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:
    main(int argc, char* argv[])
    CallbackClient app;
    return app.main(argc, argv, "config");

    Hope this helps to solve the magic ;)

Sign In or Register to comment.