Archived

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

Glacier2 Config in code

I try to run without config files but have a trouble now.

Ice.Default.Router=DemoGlacier2/router:ssl -p 4064 -h 192.168.0.75

How to translate this ? iuse C plusplus.

I try to use this,but not work.
Ice::InitializationData		initData;
initData.properties = Ice::createProperties();
initData.properties->setProperty( "Ice.Default.Router","ssl -p 4064 -h 192.168.0.75");

Comments

  • benoit
    benoit Rennes, France
    Hi,

    You need to use the same property value as in the configuration file:
    Ice::InitializationData initData;
    initData.properties = Ice::createProperties();
    initData.properties->setProperty("Ice.Default.Router","DemoGlacier2/router:ssl -p 4064 -h 192.168.0.75");
    

    Cheres,
    Benoit.