const char* interfaceName)
{
GEOM_Gen_Session_i* myGEOM_Gen_i = new GEOM_Gen_Session_i(orb, poa, contId, instanceName, interfaceName);
- auto id = poa->activate_object(myGEOM_Gen_i);
- myGEOM_Gen_i->setId(id);
- return id;
+ return myGEOM_Gen_i->getId();
}
}
Engines_Component_i(orb, poa, contId, instanceName, interfaceName, false, withRegistry)
{
_thisObj = this;
-
+ _id = _poa->activate_object(_thisObj);
_impl = new ::GEOMImpl_Gen;
//PAL10867: disable signals catching with "noexcepthandler" option
pman->activate();
//
GEOM_Gen_No_Session_i *servant = new GEOM_Gen_No_Session_i(orb,poa,const_cast<PortableServer::ObjectId*>(&conId.in()),"GEOM_inst_2","GEOM");
- PortableServer::ObjectId *zeId = poa->activate_object(servant);
- servant->setId(zeId);
+ PortableServer::ObjectId *zeId = servant->getId();
CORBA::Object_var zeRef = poa->id_to_reference(*zeId);
char *interfaceName = servant->interfaceName();
std::string interfaceNameCpp(interfaceName);