summaryrefslogtreecommitdiff
path: root/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp')
-rw-r--r--TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp b/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
index 34adc2a7b4e..11ff03aa2c1 100644
--- a/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
+++ b/TAO/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
@@ -160,6 +160,15 @@ startLaunch (const Deployment::Properties & configProperty,
CIAO_TRACE("CIAO::NodeApplicationManager_Impl::startLaunch");
ACE_UNUSED_ARG (configProperty);
ACE_UNUSED_ARG (start);
+
+ // If no additional components need to be installed, then we simply
+ // create a NA, but doesn't install any components on it.
+ if (this->plan_.instance.length () == this->shared_components_.length ())
+ {
+ ACE_DEBUG ((LM_DEBUG, "Prespawn a NodeApplication process without "
+ "installing any components.\n"));
+ }
+
/**
* 1. First Map properties to TAO/CIAO specific property/configurations
* 2. Necessary property checking (needed?)
@@ -253,8 +262,8 @@ startLaunch (const Deployment::Properties & configProperty,
for (CORBA::ULong j = 0; j < shared_comp_length; ++j)
{
if (this->component_map_.
- bind (this->shared_components_[j].in (),
- Components::CCMObject::_nil ()))
+ bind (this->shared_components_[j].in (),
+ Components::CCMObject::_nil ()))
{
ACE_CString error ("Duplicate component instance name ");
error += this->shared_components_[j].in();
@@ -536,7 +545,6 @@ CIAO::NodeApplicationManager_Impl::init (
ACE_TRY_THROW (CORBA::BAD_PARAM ());
}
-
if (delay == 0)
{
ACE_ERROR ((LM_ERROR,