summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ServerI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-04-12 11:51:15 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-04-12 11:51:15 +0000
commit707df022c7d6d35534fbde27f744af86580ed52a (patch)
treeb9c36fb031eb7e1e86c54a2e83e8fda2c983a3ca /cpp/src/IceGrid/ServerI.cpp
parentbug fix (diff)
downloadice-707df022c7d6d35534fbde27f744af86580ed52a.tar.bz2
ice-707df022c7d6d35534fbde27f744af86580ed52a.tar.xz
ice-707df022c7d6d35534fbde27f744af86580ed52a.zip
Added support for property sets.
Diffstat (limited to 'cpp/src/IceGrid/ServerI.cpp')
-rw-r--r--cpp/src/IceGrid/ServerI.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/src/IceGrid/ServerI.cpp b/cpp/src/IceGrid/ServerI.cpp
index 8538bd634c9..70340e805f8 100644
--- a/cpp/src/IceGrid/ServerI.cpp
+++ b/cpp/src/IceGrid/ServerI.cpp
@@ -1952,7 +1952,7 @@ ServerI::updateConfigFile(const string& serverDir, const CommunicatorDescriptorP
PropertyDescriptorSeq props;
if(ServerDescriptorPtr::dynamicCast(descriptor))
{
- ServerDescriptorPtr serverDesc = ServerDescriptorPtr::dynamicCast(descriptor);
+ ServerDescriptorPtr svrDesc = ServerDescriptorPtr::dynamicCast(descriptor);
configFilePath = serverDir + "/config/config";
@@ -1960,8 +1960,8 @@ ServerI::updateConfigFile(const string& serverDir, const CommunicatorDescriptorP
// Add server properties.
//
props.push_back(createProperty("# Server configuration"));
- props.push_back(createProperty("Ice.ProgramName", serverDesc->id));
- copy(descriptor->properties.begin(), descriptor->properties.end(), back_inserter(props));
+ props.push_back(createProperty("Ice.ProgramName", svrDesc->id));
+ copy(svrDesc->propertySet.properties.begin(), svrDesc->propertySet.properties.end(), back_inserter(props));
//
// Add service properties.
@@ -1984,11 +1984,11 @@ ServerI::updateConfigFile(const string& serverDir, const CommunicatorDescriptorP
}
else
{
- ServiceDescriptorPtr serviceDesc = ServiceDescriptorPtr::dynamicCast(descriptor);
- assert(serviceDesc);
- configFilePath = serverDir + "/config/config_" + serviceDesc->name;
+ ServiceDescriptorPtr svcDesc = ServiceDescriptorPtr::dynamicCast(descriptor);
+ assert(svcDesc);
+ configFilePath = serverDir + "/config/config_" + svcDesc->name;
props.push_back(createProperty("# Service configuration"));
- copy(descriptor->properties.begin(), descriptor->properties.end(), back_inserter(props));
+ copy(svcDesc->propertySet.properties.begin(), svcDesc->propertySet.properties.end(), back_inserter(props));
}
//