]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Little correction.
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 27 Oct 2014 14:17:40 +0000 (15:17 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 27 Oct 2014 14:17:40 +0000 (15:17 +0100)
src/SALOMESDS/SALOMESDS_DataScopeServer.cxx

index 5de47052fa4d231a93412e3c834727cdaad515fb..0692c3fa2367b0122dee6b5f25cb37e5b79f61f7 100644 (file)
@@ -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));