diff options
author | Jose <jose@zeroc.com> | 2009-12-17 00:46:18 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2009-12-17 00:46:18 +0100 |
commit | 188bc3f8af08ef8d5852e1e15d02fdfcb91e3ccd (patch) | |
tree | cbbffe0c5d88d4d2ea8073862de7c10ac209a5f5 /cpp/src/IceGrid/Client.cpp | |
parent | Remove StaticMutexTest & RWRecMutexTest (diff) | |
download | ice-188bc3f8af08ef8d5852e1e15d02fdfcb91e3ccd.tar.bz2 ice-188bc3f8af08ef8d5852e1e15d02fdfcb91e3ccd.tar.xz ice-188bc3f8af08ef8d5852e1e15d02fdfcb91e3ccd.zip |
4490 - icegridadmin doesn't work if icegrid using sql.
Diffstat (limited to 'cpp/src/IceGrid/Client.cpp')
-rw-r--r-- | cpp/src/IceGrid/Client.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp index c070016b001..5340df5b0f4 100644 --- a/cpp/src/IceGrid/Client.cpp +++ b/cpp/src/IceGrid/Client.cpp @@ -228,8 +228,16 @@ Client::main(Ice::StringSeq& args) try { _appName = args[0]; - _communicator = Ice::initialize(args); - + Ice::InitializationData id; + id.properties = Ice::createProperties(args); + // + // We don't want to load DB plug-ins with icegridadmin, as this will + // cause FileLock issues when run with the same configuration file + // used by the service. + // + id.properties->setProperty("Ice.Plugin.DB", ""); + _communicator = Ice::initialize(id); + { IceUtilInternal::MutexPtrLock<IceUtil::Mutex> sync(_staticMutex); _globalClient = this; |