summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/PropertyNames.cpp3
-rw-r--r--cpp/src/Ice/PropertyNames.h2
-rw-r--r--cpp/src/IceGrid/Client.cpp15
3 files changed, 4 insertions, 16 deletions
diff --git a/cpp/src/Ice/PropertyNames.cpp b/cpp/src/Ice/PropertyNames.cpp
index fbe4a73b2c4..1850b56ed2d 100644
--- a/cpp/src/Ice/PropertyNames.cpp
+++ b/cpp/src/Ice/PropertyNames.cpp
@@ -7,7 +7,7 @@
//
// **********************************************************************
-// Generated by makeprops.py from file `../config/PropertyNames.def', Fri Feb 16 11:37:37 2007
+// Generated by makeprops.py from file `../config/PropertyNames.def', Fri Feb 16 15:47:35 2007
// IMPORTANT: Do not edit this file -- any edits made here will be lost!
@@ -127,7 +127,6 @@ const char* IceInternal::PropertyNames::IceBoxProps[] =
const char* IceInternal::PropertyNames::IceGridAdminProps[] =
{
"IceGridAdmin.AuthenticateUsingSSL",
- "IceGridAdmin.Routed",
"IceGridAdmin.Username",
"IceGridAdmin.Password",
"IceGridAdmin.Replica",
diff --git a/cpp/src/Ice/PropertyNames.h b/cpp/src/Ice/PropertyNames.h
index fa3042f73ba..4e03d85b9ad 100644
--- a/cpp/src/Ice/PropertyNames.h
+++ b/cpp/src/Ice/PropertyNames.h
@@ -7,7 +7,7 @@
//
// **********************************************************************
-// Generated by makeprops.py from file `../config/PropertyNames.def', Fri Feb 16 11:37:37 2007
+// Generated by makeprops.py from file `../config/PropertyNames.def', Fri Feb 16 15:47:35 2007
// IMPORTANT: Do not edit this file -- any edits made here will be lost!
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp
index 0e869d5499d..6b375624bf1 100644
--- a/cpp/src/IceGrid/Client.cpp
+++ b/cpp/src/IceGrid/Client.cpp
@@ -132,7 +132,6 @@ Client::usage()
"-u, --username Login with the given username.\n"
"-p, --password Login with the given password.\n"
"-S, --ssl Authenticate through SSL.\n"
- "-r, --routed Login through a Glacier2 router.\n"
"-R, --replica NAME Connect to the replica NAME.\n"
;
}
@@ -255,10 +254,9 @@ Client::run(int argc, char* argv[])
opts.addOpt("u", "username", IceUtil::Options::NeedArg, "", IceUtil::Options::NoRepeat);
opts.addOpt("p", "password", IceUtil::Options::NeedArg, "", IceUtil::Options::NoRepeat);
opts.addOpt("S", "ssl");
- opts.addOpt("r", "routed");
opts.addOpt("d", "debug");
opts.addOpt("s", "server");
- opts.addOpt("R", "replica", IceUtil::Options::NeedArg, "", IceUtil::Options::NoRepeat);
+ opts.addOpt("r", "replica", IceUtil::Options::NeedArg, "", IceUtil::Options::NoRepeat);
vector<string> args;
try
@@ -362,16 +360,7 @@ Client::run(int argc, char* argv[])
password = opts.optArg("password");
}
- //
- // If a glacier2 router is configured, then set routed to true by
- // default.
- //
Ice::PropertiesPtr properties = communicator()->getProperties();
- bool routed = properties->getPropertyAsIntWithDefault("IceGridAdmin.Routed", communicator()->getDefaultRouter());
- if(opts.isSet("routed"))
- {
- routed = true;
- }
string replica = properties->getProperty("IceGridAdmin.Replica");
if(!opts.optArg("replica").empty())
{
@@ -384,7 +373,7 @@ Client::run(int argc, char* argv[])
try
{
int timeout;
- if(routed)
+ if(communicator()->getDefaultRouter())
{
Glacier2::RouterPrx router = Glacier2::RouterPrx::checkedCast(communicator()->getDefaultRouter());
if(!router)