summaryrefslogtreecommitdiff
path: root/cpp/src/IceStorm/Service.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/IceStorm/Service.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/IceStorm/Service.cpp')
-rw-r--r--cpp/src/IceStorm/Service.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/cpp/src/IceStorm/Service.cpp b/cpp/src/IceStorm/Service.cpp
index 85c141473c1..fcc400b9ff8 100644
--- a/cpp/src/IceStorm/Service.cpp
+++ b/cpp/src/IceStorm/Service.cpp
@@ -23,7 +23,7 @@ using namespace Freeze;
namespace IceStorm
{
-class ICESTORM_SERVICE_API ServiceI : public ::IceBox::FreezeService
+class ICESTORM_SERVICE_API ServiceI : public ::IceBox::Service
{
public:
@@ -32,8 +32,7 @@ public:
virtual void start(const string&,
const CommunicatorPtr&,
- const StringSeq&,
- const string&);
+ const StringSeq&);
virtual void stop();
@@ -49,7 +48,7 @@ private:
extern "C"
{
-ICESTORM_SERVICE_API ::IceBox::FreezeService*
+ICESTORM_SERVICE_API ::IceBox::Service*
create(CommunicatorPtr communicator)
{
return new ServiceI;
@@ -68,14 +67,16 @@ IceStorm::ServiceI::~ServiceI()
void
IceStorm::ServiceI::start(const string& name,
const CommunicatorPtr& communicator,
- const StringSeq& args,
- const string& envName)
+ const StringSeq& args)
{
TraceLevelsPtr traceLevels = new TraceLevels(name, communicator->getProperties(), communicator->getLogger());
_topicAdapter = communicator->createObjectAdapter(name + ".TopicManager");
_publishAdapter = communicator->createObjectAdapter(name + ".Publish");
- _manager = new TopicManagerI(communicator, _topicAdapter, _publishAdapter, traceLevels, envName, "topics");
+ //
+ // We use the name of the service for the name of the database environment.
+ //
+ _manager = new TopicManagerI(communicator, _topicAdapter, _publishAdapter, traceLevels, name, "topics");
_topicAdapter->add(_manager, stringToIdentity(name + "/TopicManager"));
_topicAdapter->activate();