|
|
|
|||||
|
basic freeze problem
Hello:
I,m traying make a basic application with evictor, when a link it: -------------------------------------------------------------------------------------------------------- TiendaWebApplication.o(.gnu.linkonce.t._ZN12Tienda WebApp9runFreezeEiPPcRKN11IceInternal6HandleIN6Fre eze13DBEnvironmentEEE+0x179): In function `TiendaWebApp::runFreeze(int, char**, IceInternal::Handle<Freeze: BEnvironment> const&)':: undefined reference to `WebServices::TiendaWebI::_adapter' TiendaWebApplication.o(.gnu.linkonce.t._ZN12Tienda WebApp9runFreezeEiPPcRKN11IceInternal6HandleIN6Fre eze13DBEnvironmentEEE+0x4a7): In function `TiendaWebApp::runFreeze(int, char**, IceInternal::Handle<Freeze: BEnvironment> const&)':: undefined reference to `WebServices::TiendaWebI::_evictor' ---------------------------------------------------------------------------------------------------------- class TiendaWebI : virtual public TiendaWeb { public: TiendaWebI(const ObjectAdapterPtr& , const DBPtr& , const EvictorPtr& ); virtual ProductViewPrx createProduct(const Ice::Current &); virtual Products getProducts ( const Ice::Current &) const; void removeProduct(const Ice::Current &); static Ice::ObjectAdapterPtr _adapter; static Freeze: BPtr _db;static Freeze::EvictorPtr _evictor; static ProductPersistentMap _objectsMap; }; ----------------------------------------------------------------------------- TiendaWebApplication virtual int runFreeze(int, char *[],const Freeze: BEnvironmentPtr & dbEnv){ Freeze: BPtr db = dbEnv->openDB("tiendaWebFs",true);// Create an object adapter TiendaWebI::_adapter=communicator()->createObjectAdapterWithEndpoints("TiendaWebServic e","default -p 10000"); Ice::ObjectFactoryPtr factory = new TiendaWebFactory(); communicator()->addObjectFactory(factory, ProductView::ice_staticId() ); Freeze::PersistenceStrategyPtr strategy= db->createEvictionStrategy(); TiendaWebI::_evictor=db->createEvictor(strategy); TiendaWebI::_adapter->addServantLocator(TiendaWebI::_evictor,""); TiendaWebI::_adapter->activate(); communicator()->waitForShutdown(); if(interrupted()) { cerr<<appName()<<": received signal, shutting down"<<endl; } }; ------------------------------------------------------------------------------- thanks, and congratulations for Ice , i'd like pay you when sombody pay me , thanks |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ip Addresses and basic conection questions | EmmanuelOga | Help Center | 5 | 07-31-2006 05:45 PM |
| Visual Basic two-way communication with Java | msciarra | Help Center | 3 | 12-01-2004 02:33 PM |
| Freeze problem | ruzark | Help Center | 2 | 11-15-2004 08:02 PM |
| Freeze problem | freshman | Help Center | 1 | 08-18-2004 07:36 AM |
| Freeze problem | xdm | Help Center | 1 | 12-15-2003 12:44 PM |