summaryrefslogtreecommitdiff
path: root/cpp/src/IceBox/ServiceManagerI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2004-06-02 21:17:40 +0000
committerBenoit Foucher <benoit@zeroc.com>2004-06-02 21:17:40 +0000
commitc209ff436f4268b8db689a2dd17615456eea78ce (patch)
tree5feb8607988706851bfdfdd5ba2d3924ba5b8f6c /cpp/src/IceBox/ServiceManagerI.cpp
parentFixed to AMD code generation. (diff)
downloadice-c209ff436f4268b8db689a2dd17615456eea78ce.tar.bz2
ice-c209ff436f4268b8db689a2dd17615456eea78ce.tar.xz
ice-c209ff436f4268b8db689a2dd17615456eea78ce.zip
Merged icepack_refactoring2_branch, many IcePack changes.
Diffstat (limited to 'cpp/src/IceBox/ServiceManagerI.cpp')
-rw-r--r--cpp/src/IceBox/ServiceManagerI.cpp38
1 files changed, 4 insertions, 34 deletions
diff --git a/cpp/src/IceBox/ServiceManagerI.cpp b/cpp/src/IceBox/ServiceManagerI.cpp
index c9102d2cecf..6b036368cce 100644
--- a/cpp/src/IceBox/ServiceManagerI.cpp
+++ b/cpp/src/IceBox/ServiceManagerI.cpp
@@ -10,7 +10,6 @@
#include <Ice/Ice.h>
#include <Ice/DynamicLibrary.h>
#include <IceBox/ServiceManagerI.h>
-#include <Freeze/Exception.h>
using namespace Ice;
using namespace IceBox;
@@ -329,43 +328,14 @@ IceBox::ServiceManagerI::start(const string& service, const string& entryPoint,
CommunicatorPtr communicator = info.communicator ? info.communicator : _server->communicator();
- ServicePtr s = ServicePtr::dynamicCast(info.service);
-
- if(s)
- {
- //
- // IceBox::Service
- //
- s->start(service, communicator, serviceArgs);
- }
- else
- {
- //
- // IceBox::FreezeService
- //
- // Either open the database environment, or if it has already been opened,
- // retrieve it from the map.
- //
- FreezeServicePtr fs = FreezeServicePtr::dynamicCast(info.service);
-
- info.envName = properties->getProperty("IceBox.DBEnvName." + service);
-
- fs->start(service, communicator, serviceArgs, info.envName);
- }
+ //
+ // Start the service.
+ //
+ info.service->start(service, communicator, serviceArgs);
info.library = library;
_services[service] = info;
}
- catch(const Freeze::DatabaseException& ex)
- {
- ostringstream s;
- s << "ServiceManager: database exception while starting service " << service << ":\n";
- s << ex;
-
- FailureException e(__FILE__, __LINE__);
- e.reason = s.str();
- throw e;
- }
catch(const FailureException&)
{
throw;