summaryrefslogtreecommitdiff
path: root/cpp/src/Glacier2/SessionRouterI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Glacier2/SessionRouterI.cpp')
-rw-r--r--cpp/src/Glacier2/SessionRouterI.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/Glacier2/SessionRouterI.cpp b/cpp/src/Glacier2/SessionRouterI.cpp
index 5b692a52b68..a32c9c6abe1 100644
--- a/cpp/src/Glacier2/SessionRouterI.cpp
+++ b/cpp/src/Glacier2/SessionRouterI.cpp
@@ -264,10 +264,10 @@ Glacier2::SessionRouterI::SessionRouterI(const ObjectAdapterPtr& clientAdapter,
// This session router is used directly as servant for the main
// Glacier2 router Ice object.
//
- const string instanceNameProperty = "Glacier2.InstanceName";
- string routerId = _properties->getPropertyWithDefault(instanceNameProperty, "Glacier2") + "/router";
- Identity id = clientAdapter->getCommunicator()->stringToIdentity(routerId);
- _clientAdapter->add(this, id);
+ Identity routerId;
+ routerId.category = _properties->getPropertyWithDefault("Glacier2.InstanceName", "Glacier2");
+ routerId.name = "router";
+ _clientAdapter->add(this, routerId);
//
// All other calls on the client object adapter are dispatched to