From: Anthony Geay Date: Mon, 27 Oct 2014 14:17:40 +0000 (+0100) Subject: Little correction. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2a64f2983b6f8f22db35278372b1c975afec592f;p=modules%2Fkernel.git Little correction. --- diff --git a/src/SALOMESDS/SALOMESDS_DataScopeServer.cxx b/src/SALOMESDS/SALOMESDS_DataScopeServer.cxx index 5de47052f..0692c3fa2 100644 --- a/src/SALOMESDS/SALOMESDS_DataScopeServer.cxx +++ b/src/SALOMESDS/SALOMESDS_DataScopeServer.cxx @@ -103,7 +103,10 @@ CORBA::Object_var DataScopeServer::activateWithDedicatedPOA(BasicDataServer *ds) policies.length(1); PortableServer::ThreadPolicy_var threadPol(rootPoa->create_thread_policy(PortableServer::SINGLE_THREAD_MODEL)); policies[0]=PortableServer::ThreadPolicy::_duplicate(threadPol); - PortableServer::POA_var poa(rootPoa->create_POA("SingleThPOA4SDS",pman,policies)); + std::string name(ds->getVarNameCpp()); + std::ostringstream oss; oss << "POA@" << name; + std::string zePOAName(oss.str()); + PortableServer::POA_var poa(rootPoa->create_POA(zePOAName.c_str(),pman,policies)); threadPol->destroy(); // PortableServer::ObjectId_var id(poa->activate_object(ds));