Archived

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

IceBox.DBEnvName.name

xdm
xdm La Coruña, Spain
Hellow

I create an IceBoxService an I set in config file the property
IceBox.DBEnvName.name=TiendaDb
how can i acces to it when create the evictor?

TiendaRezI::_evictor = Freeze::createEvictor(communicator,???,"tiendaDb");

thanks

Comments

  • Have a look at the Properties chapter in the book. It shows how to look up property values.

    Cheers,

    Michi.
  • xdm
    xdm La Coruña, Spain
    thanks you michi I forget to put the name of my service and only put name

    sorry

    And other Question relative to this

    I confused about poitn 24.4.4

    Freeze Service the signature of start method is not the same that signature In
    Ice-1.2.0/slice/IceBox/IceBox.ice

    In the book I read:

    void start(string name,Ice::communicator communicator,Ice::StringSeq args,FreezeDBEnvironment dbEnv)

    in slice i read:

    void start(string name, Ice::Communicator communicator, Ice::StringSeq args, string envName);


    why this diference?

    And thakns for your help
  • bernard
    bernard Jupiter, FL
    It's just a mistake in the book. The API changed in 1.2. It will be fixed in the new book revision.

    Cheers,
    Bernard