summaryrefslogtreecommitdiff
path: root/cpp/src/IceBox/ServiceManagerI.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2007-01-25 10:43:56 +0000
committerMatthew Newhook <matthew@zeroc.com>2007-01-25 10:43:56 +0000
commitccb6fc811ecc0890aabfb79635b45b5d9e276acd (patch)
tree440dd8b46f2614055fa64093788822ba8f5a4136 /cpp/src/IceBox/ServiceManagerI.cpp
parentBug 1488. (diff)
downloadice-ccb6fc811ecc0890aabfb79635b45b5d9e276acd.tar.bz2
ice-ccb6fc811ecc0890aabfb79635b45b5d9e276acd.tar.xz
ice-ccb6fc811ecc0890aabfb79635b45b5d9e276acd.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=1283
Diffstat (limited to 'cpp/src/IceBox/ServiceManagerI.cpp')
-rw-r--r--cpp/src/IceBox/ServiceManagerI.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/src/IceBox/ServiceManagerI.cpp b/cpp/src/IceBox/ServiceManagerI.cpp
index b1672408cef..c3097d5b99e 100644
--- a/cpp/src/IceBox/ServiceManagerI.cpp
+++ b/cpp/src/IceBox/ServiceManagerI.cpp
@@ -372,6 +372,7 @@ IceBox::ServiceManagerI::start(const string& service, const string& entryPoint,
//
PropertiesPtr properties = _communicator->getProperties();
+
if(properties->getPropertyAsInt("IceBox.UseSharedCommunicator." + service) > 0)
{
PropertiesPtr serviceProperties = createProperties(info.args, properties);
@@ -402,7 +403,15 @@ IceBox::ServiceManagerI::start(const string& service, const string& entryPoint,
else
{
string name = properties->getProperty("Ice.ProgramName");
- PropertiesPtr serviceProperties = createProperties(info.args, properties);
+ PropertiesPtr serviceProperties;
+ if(properties->getPropertyAsInt("IceBox.InheritContainerProperties") > 0)
+ {
+ serviceProperties = createProperties(info.args, properties);
+ }
+ else
+ {
+ serviceProperties = createProperties(info.args);
+ }
if(name == serviceProperties->getProperty("Ice.ProgramName"))
{