Archived

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

evictor question

xdm
xdm La Coruña, Spain
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

  • xdm
    xdm La Coruña, Spain
    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