From 59e5d924b58ad7b1f582b18d05628e36d1f4a320 Mon Sep 17 00:00:00 2001 From: Yoann Audouin Date: Thu, 26 Aug 2021 08:17:14 +0200 Subject: [PATCH] Porting in SSL Bug12504 of non regression test --- src/SalomeSessionless/HOMARDHelper.cxx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/SalomeSessionless/HOMARDHelper.cxx b/src/SalomeSessionless/HOMARDHelper.cxx index 66542b69..187bae24 100644 --- a/src/SalomeSessionless/HOMARDHelper.cxx +++ b/src/SalomeSessionless/HOMARDHelper.cxx @@ -32,17 +32,12 @@ std::string BuildHOMARDInstanceInternal() CORBA::Object_var obj = orb->resolve_initial_references("RootPOA"); PortableServer::POA_var poa = PortableServer::POA::_narrow(obj); PortableServer::POAManager_var pman = poa->the_POAManager(); - PortableServer::ObjectId_var conId; - // - { - char *argv[4] = {"Container","FactoryServer","HOMARD",nullptr}; - Engines_Container_i *cont = new Engines_Container_i(orb,poa,"FactoryServer",2,argv,nullptr,false); - conId = poa->activate_object(cont); - } + auto *cont(KERNEL::getContainerSA()); + PortableServer::ObjectId *conId(cont->getCORBAId()); // pman->activate(); // - HOMARD_Gen_i_No_Session *servant = new HOMARD_Gen_i_No_Session(orb,poa,const_cast(&conId.in()),"HOMARD_inst_2","HOMARD"); + HOMARD_Gen_i_No_Session *servant = new HOMARD_Gen_i_No_Session(orb,poa,conId,"HOMARD_inst_2","HOMARD"); PortableServer::ObjectId *zeId = servant->getId(); CORBA::Object_var zeRef = poa->id_to_reference(*zeId); CORBA::String_var ior = orb->object_to_string(zeRef); -- 2.30.2