Home Bug Reports

Typo in Java Glacier2 demo properties file?

bartleybartley Member Chris BartleyOrganization: Carnegie Mellon University Robotics InstituteProject: The Telepresence Robot Kit (TeRK) ✭✭
The Java Glacier2 demo ([ICE_HOME]\demoj\Glacier2\callback\) contains the following in the config.glacier2 file:
Ice.Plugin.IceSSL=IceSSL:create
IceSSL.Server.CertPath=../../../certs
IceSSL.Server.Config=sslconfig.xml
IceSSL.Client.CertPath=../../../certs
IceSSL.Client.Config=sslconfig.xml

Shouldn't the Ice.Plugin.IceSSL line be configured like this instead?
Ice.Plugin.IceSSL=IceSSL.PluginFactory

Also, don't you have to specify Ice.ThreadPerConnection=1?

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    bartley wrote:
    Shouldn't the Ice.Plugin.IceSSL line be configured like this instead?
    Ice.Plugin.IceSSL=IceSSL.PluginFactory
    

    Also, don't you have to specify Ice.ThreadPerConnection=1?

    No, IceSSL:create is the correct syntax for the Ice for C++ SSL plug-in. Glacier2 is an Ice for C++ application, even if the client and the server in this demo are written in Java.

    It is also not necessary to set Ice.ThreadPerConnection explicitly. Glacier2 sets this internally, i.e., it always uses the thread-per-connection model.
  • bartleybartley Member Chris BartleyOrganization: Carnegie Mellon University Robotics InstituteProject: The Telepresence Robot Kit (TeRK) ✭✭
    Oh, duh. Thanks, that makes sense. Sorry for not realizing this on my own.
Sign In or Register to comment.