Results 1 to 2 of 2

Thread: Properties for the callback demo

  1. #1
    catalin is offline Registered User
    Join Date
    Jul 2003
    Location
    Oslo, Norway
    Posts
    57

    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

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 01-08-2009, 12:11 PM
  2. Typo in Java Glacier2 demo properties file?
    By bartley in forum Bug Reports
    Replies: 2
    Last Post: 02-09-2006, 04:35 PM
  3. demo/ice/callback problem
    By Rerox in forum Help Center
    Replies: 1
    Last Post: 07-27-2005, 04:54 PM
  4. demo/glacier2/callback problem
    By alienwolf in forum Help Center
    Replies: 1
    Last Post: 05-29-2005, 11:52 PM
  5. The "callback" string in the callback demo
    By catalin in forum Help Center
    Replies: 2
    Last Post: 08-27-2004, 12:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •