summaryrefslogtreecommitdiff
path: root/cpp/src/IceStorm/Service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceStorm/Service.cpp')
-rw-r--r--cpp/src/IceStorm/Service.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/IceStorm/Service.cpp b/cpp/src/IceStorm/Service.cpp
index 99210191015..0abd7201134 100644
--- a/cpp/src/IceStorm/Service.cpp
+++ b/cpp/src/IceStorm/Service.cpp
@@ -100,10 +100,11 @@ IceStorm::ServiceI::start(const string& name,
//
// We use the name of the service for the name of the database environment.
//
- string topicManagerId = properties->getPropertyWithDefault(name + ".InstanceName", "IceStorm") + "/TopicManager";
- Ice::Identity id = communicator->stringToIdentity(topicManagerId);
+ Identity topicManagerId;
+ topicManagerId.category = properties->getPropertyWithDefault(name + ".InstanceName", "IceStorm");
+ topicManagerId.name = "TopicManager";
_manager = new TopicManagerI(communicator, _topicAdapter, _publishAdapter, traceLevels, name, "topics");
- _managerProxy = TopicManagerPrx::uncheckedCast(_topicAdapter->add(_manager, id));
+ _managerProxy = TopicManagerPrx::uncheckedCast(_topicAdapter->add(_manager, topicManagerId));
_topicAdapter->activate();
_publishAdapter->activate();