diff options
author | Marc Laukien <marc@zeroc.com> | 2001-12-07 16:23:30 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-12-07 16:23:30 +0000 |
commit | fb860ded9d0b326b5e3ac3930878dfa0aac4238e (patch) | |
tree | fcdfd2aeab607f4b088400df6225eac89b363f94 /cpp/src/IceWall/Server.cpp | |
parent | Release mode updates. (diff) | |
download | ice-fb860ded9d0b326b5e3ac3930878dfa0aac4238e.tar.bz2 ice-fb860ded9d0b326b5e3ac3930878dfa0aac4238e.tar.xz ice-fb860ded9d0b326b5e3ac3930878dfa0aac4238e.zip |
addPropertyPrefix
Diffstat (limited to 'cpp/src/IceWall/Server.cpp')
-rw-r--r-- | cpp/src/IceWall/Server.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/IceWall/Server.cpp b/cpp/src/IceWall/Server.cpp index b6a79f75baf..19f993ed582 100644 --- a/cpp/src/IceWall/Server.cpp +++ b/cpp/src/IceWall/Server.cpp @@ -26,6 +26,7 @@ public: int main(int argc, char* argv[]) { + addArgumentPrefix("IceWall"); Server app; return app.main(argc, argv); } @@ -66,7 +67,7 @@ Server::run(int argc, char* argv[]) PropertiesPtr properties = communicator()->getProperties(); - const char* routerEndpointsProperty = "Ice.Adapter.Router.Endpoints"; + const char* routerEndpointsProperty = "IceWall.Router.Endpoints"; string routerEndpoints = properties->getProperty(routerEndpointsProperty); if (routerEndpoints.empty()) { @@ -76,7 +77,8 @@ Server::run(int argc, char* argv[]) ServantLocatorPtr router = new Router; - ObjectAdapterPtr routerAdapter = communicator()->createObjectAdapter("Router"); + ObjectAdapterPtr routerAdapter = communicator()->createObjectAdapterFromProperty("Router", + routerEndpointsProperty); routerAdapter->addServantLocator(router, ""); routerAdapter->activate(); |