summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/ServerDeployer.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-08-09 14:46:06 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-08-09 14:46:06 +0000
commitdb3b68cb56c951f2f54fd63685039ab908acab06 (patch)
treea2fc0e7e9fde3634b96f6da41b268fb1582b4f44 /cpp/src/IcePack/ServerDeployer.cpp
parentadded dummy file (diff)
downloadice-db3b68cb56c951f2f54fd63685039ab908acab06.tar.bz2
ice-db3b68cb56c951f2f54fd63685039ab908acab06.tar.xz
ice-db3b68cb56c951f2f54fd63685039ab908acab06.zip
Added new IcePack test suite, add IcePack tracing properties, added IcePack
server shutdown.
Diffstat (limited to 'cpp/src/IcePack/ServerDeployer.cpp')
-rw-r--r--cpp/src/IcePack/ServerDeployer.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/cpp/src/IcePack/ServerDeployer.cpp b/cpp/src/IcePack/ServerDeployer.cpp
index 636ee0ac022..ba2f94f32d5 100644
--- a/cpp/src/IcePack/ServerDeployer.cpp
+++ b/cpp/src/IcePack/ServerDeployer.cpp
@@ -363,7 +363,7 @@ IcePack::ServerDeployer::addAdapter(const string& name, const string& endpoints)
if(_automaticActivation)
{
desc.server = ServerPrx::uncheckedCast(
- _communicator->stringToProxy("server/" + _description.name + "@IcePack.Internal"));
+ _communicator->stringToProxy("server/" + _description.name + "@IcePackInternalAdapter"));
_description.adapters.push_back(desc.name);
}
@@ -404,8 +404,7 @@ IcePack::ServerDeployer::addService(const string& name, const string& descriptor
ServiceDeployer* task = new ServiceDeployer(_communicator, *this, variables, componentPath, _targets);
try
{
- string xmlFile = descriptor[0] != '/' ? _variables["basedir"] + "/" + descriptor : descriptor;
- task->parse(xmlFile);
+ task->parse(toLocation(descriptor));
}
catch(const ParserDeploymentException& ex)
{
@@ -437,12 +436,15 @@ IcePack::ServerDeployer::setKind(ServerDeployer::ServerKind kind)
{
throw DeploySAXParseException("C++ server path is not specified", _locator);
}
-
+ _description.isIceBox = false;
+ break;
+
case ServerKindJavaServer:
if(_description.path.empty())
{
_description.path = "java";
}
+ _description.isIceBox = false;
break;
case ServerKindJavaIceBox:
@@ -450,6 +452,7 @@ IcePack::ServerDeployer::setKind(ServerDeployer::ServerKind kind)
{
_description.path = "java";
}
+ _description.isIceBox = true;
_className = "IceBox.Server";
createDirectory("/dbs");
addProperty("IceBox.Name", _variables["name"]);
@@ -461,6 +464,7 @@ IcePack::ServerDeployer::setKind(ServerDeployer::ServerKind kind)
{
_description.path = "icebox";
}
+ _description.isIceBox = true;
createDirectory("/dbs");
addProperty("IceBox.Name", _variables["name"]);
addAdapter(_variables["name"] + ".ServiceManagerAdapter","");