summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/Communicator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/src/IceE/Communicator.cpp')
-rwxr-xr-xcppe/src/IceE/Communicator.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/cppe/src/IceE/Communicator.cpp b/cppe/src/IceE/Communicator.cpp
index bdb1a047fc0..091fbcc59ad 100755
--- a/cppe/src/IceE/Communicator.cpp
+++ b/cppe/src/IceE/Communicator.cpp
@@ -79,9 +79,23 @@ Ice::Communicator::createObjectAdapter(const string& name)
ObjectAdapterPtr
Ice::Communicator::createObjectAdapterWithEndpoints(const string& name, const string& endpoints)
{
- return _instance->objectAdapterFactory()->createObjectAdapter(name, endpoints);
+ return _instance->objectAdapterFactory()->createObjectAdapter(name, endpoints
+#ifdef ICEE_HAS_ROUTER
+ , 0
+# endif
+ );
}
+#ifdef ICEE_HAS_ROUTER
+
+ObjectAdapterPtr
+Ice::Communicator::createObjectAdapterWithRouter(const string& name, const RouterPrx& router)
+{
+ return _instance->objectAdapterFactory()->createObjectAdapter(name, "", router);
+}
+
+#endif
+
#endif
Ice::Context