summaryrefslogtreecommitdiff
path: root/cpp/src/IceStorm/Service.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-09-05 15:58:21 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-09-05 15:58:21 +0000
commit9a06476f80dfab5b3a0497cdcabcc005a939f94e (patch)
treed6595a4ee4424f4a8939f03b19d1122d46714ef0 /cpp/src/IceStorm/Service.cpp
parentFix compilation error. (diff)
downloadice-9a06476f80dfab5b3a0497cdcabcc005a939f94e.tar.bz2
ice-9a06476f80dfab5b3a0497cdcabcc005a939f94e.tar.xz
ice-9a06476f80dfab5b3a0497cdcabcc005a939f94e.zip
Bug 1209
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();