Archived
This forum has been archived. Please start a new discussion on GitHub.
Initialization of IceSSL
I've just started using IceSSL and I have a question on the initialization:
I'm using the class Ice::Application.
If I initialize IceSSL inside of run()
Application::run(...)
{
...
properties->setProperty("Ice.Plugin.IceSSL", "IceSSL:create");
...
}
inside of Application::run like all my other properties that I use IceSSL does not initialize.
However, if I initialize IceSSL on the command line of the program as follows:
--Ice.Plugin.IceSSL=IceSSL:create
everything works.
Does the plugin (IceSSL) need to be installed prior to starting the communicator or am I just doing something wrong.
Thanks again for all your help!
Regards --Roland
I'm using the class Ice::Application.
If I initialize IceSSL inside of run()
Application::run(...)
{
...
properties->setProperty("Ice.Plugin.IceSSL", "IceSSL:create");
...
}
inside of Application::run like all my other properties that I use IceSSL does not initialize.
However, if I initialize IceSSL on the command line of the program as follows:
--Ice.Plugin.IceSSL=IceSSL:create
everything works.
Does the plugin (IceSSL) need to be installed prior to starting the communicator or am I just doing something wrong.
Thanks again for all your help!
Regards --Roland
0
Comments
-
Hi Roland,
The Ice.Plugin.* properties are processed when the communicator is initialized. As you suspected, since the communicator is already initialized by the time Application::run is invoked, your program is setting the property too late for it to have any effect.
You can define the property in a configuration file, or you can set it in your program's main function by defining it in the default properties.
Take care,
- Mark0