Home Help Center

evictor question

xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
I'm developing a freeze evictor aplication

i have the next slice definitions


sequence<string> Strings;
sequence<Ice::Identity> Identities;
dictionary<string,Identities> stringIdMap;

class AlmacenPersistent implements AlmacenAdmin
{
Identities records;
Strings sellos;
Strings categories;
stringIdMap sellosMap;
stringIdMap categoriesMap;

IceStorm::TopicManager *manager;
IceStorm::Topic *productCreatedTopic;

/*Albaranes*/

Identities AlbaranesIn;
Identities AlbaranesOut;
};


in the server initialize the evicto whit the next code

DBPtr almacenDb= dbEnv->openDB("almacenDb",true);
PersistenceStrategyPtr strategyAlmacen= almacenDb->createEvictionStrategy();
AlmacenI::_evictor= almacenDb->createEvictor(strategyAlmacen);

the question is When I aded a element two one vector in Almacen this change is automatic saved to de
database or when it is saved?

I experimented problems whe the servers go dow it crash

What are the steps to correct shoot dow the FreezeApplication?

There are same proble in the use of multiple evictor in on FreezeApplication?

Thanks you for all

Comments

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    evictor agaim

    I solving the problem of the server crash changing the order in whith I initialize de evitors now the server goes down well

    I`ll be more carefully nex time
Sign In or Register to comment.