From 2a64f2983b6f8f22db35278372b1c975afec592f Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 27 Oct 2014 15:17:40 +0100 Subject: [PATCH] Little correction. --- src/SALOMESDS/SALOMESDS_DataScopeServer.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)); -- 2.39.2