Results 1 to 4 of 4

Thread: set config properties w/o config file

  1. #1
    dkey is offline Registered User
    Join Date
    Mar 2005
    Posts
    3

    Question set config properties w/o config file

    hi,
    I couldn't find an answer to this question in the forum.
    is there any way to set configuration options (which are normally done in the config file) directly in code?

    regards,
    dkey

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi,

    Section 27.8 in the manual should provide the information you need. If not, please let us know.

    Take care,
    - Mark

  3. #3
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Quote Originally Posted by dkey
    hi,
    I couldn't find an answer to this question in the forum.
    is there any way to set configuration options (which are normally done in the config file) directly in code?

    regards,
    dkey
    Yes, you can create a Ice::Properties instance and fill it with whatever values you like. Then create a communicator with the properties instance.

    For example,

    Ice::PropertiesPtr properties = Ice::createProperties();
    properties->setProperty("Ice.Trace.Network", "1");
    Ice::CommunicatorPtr communicator = Ice::initializeWithProperties(argc, argv, properties);

    Best Regards, Matthew

  4. #4
    dkey is offline Registered User
    Join Date
    Mar 2005
    Posts
    3

    Thumbs up

    thx a lot!
    you guys are doing a really good job!

    regards,
    dkey

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to use my config file in VS 2005
    By bxhsix in forum Help Center
    Replies: 2
    Last Post: 03-30-2008, 03:46 AM
  2. Using config file with Java client
    By Djaunl in forum Help Center
    Replies: 2
    Last Post: 03-15-2007, 02:43 PM
  3. Specifying a default locator without a config file
    By mefoster in forum Help Center
    Replies: 1
    Last Post: 03-01-2007, 05:10 AM
  4. config file properties
    By Greenhippo in forum Help Center
    Replies: 3
    Last Post: 01-16-2007, 03:07 AM
  5. Replies: 2
    Last Post: 07-22-2005, 05:46 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
  •