[omniORB] orb->shutdown(0); not working

SaE sae@argus.comset.net
Wed, 28 Mar 2001 11:21:58 +0400


Hello omniorb-list,


//Initialisation part

    CORBA::Object_var pobj = orb->resolve_initial_references("omniINSPOA");
    PortableServer::POA_var boot_poa = PortableServer::POA::_narrow(pobj);
    
    PortableServer::ObjectId_var oid = PortableServer::string_to_ObjectId("FIXSrv");
    fix_operations_FixOperations_i* myfix_operations_FixOperations_i = new fix_operations_FixOperations_i();
    boot_poa->activate_object_with_id(oid,myfix_operations_FixOperations_i);
    CORBA::Object_var ref = myfix_operations_FixOperations_i->_this();
    PortableServer::POAManager_var pman = boot_poa->the_POAManager();
    pman->activate();
    orb->run();
    //^^^^^- never exit from this loop
////////////
// Implementation of shutdown method  "oneway" !!

void fix_operations_FixOperations_i::stopSrv(){
            cerr << "FIX_server: I am being shutdown!" << endl;
            orb->shutdown(0);
}
//////
after calling this method  no shutdown happen.. everything working as
usual..
any idea?
    

-- 
Best regards,
 SaE                          mailto:sae@argus.comset.net