From 188bc3f8af08ef8d5852e1e15d02fdfcb91e3ccd Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 17 Dec 2009 00:46:18 +0100 Subject: 4490 - icegridadmin doesn't work if icegrid using sql. --- cpp/src/IceGrid/Client.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'cpp/src/IceGrid/Client.cpp') 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 sync(_staticMutex); _globalClient = this; -- cgit v1.2.3