1 // Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // SALOME LifeCycleCORBA : implementation of containers and engines life cycle both in Python and C++
24 // File : SALOME_LifeCycleCORBA.cxx
25 // Author : Paul RASCLE, EDF
39 #include "Basics_Utils.hxx"
40 #include "utilities.h"
42 #include <ServiceUnreachable.hxx>
44 #include "SALOME_LifeCycleCORBA.hxx"
45 #include "SALOME_ResourcesManager.hxx"
46 #include "SALOMESDS_DataServerManager.hxx"
47 #include "SALOME_ExternalServerLauncher.hxx"
49 #include CORBA_CLIENT_HEADER(SALOME_ModuleCatalog)
50 #include CORBA_CLIENT_HEADER(SALOME_Session)
51 #include CORBA_CLIENT_HEADER(DSC_Engines)
52 #include CORBA_CLIENT_HEADER(SALOME_Registry)
53 #include CORBA_CLIENT_HEADER(SALOMEDS)
54 #include CORBA_CLIENT_HEADER(SALOME_SDS)
55 #include CORBA_CLIENT_HEADER(Logger)
56 #include CORBA_CLIENT_HEADER(SALOME_Launcher)
58 #include "SALOME_ResourcesManager.hxx"
59 #include "SALOME_ContainerManager.hxx"
60 #include "SALOME_Component_i.hxx"
61 #include "SALOME_NamingService.hxx"
62 #include "SALOME_FileTransferCORBA.hxx"
64 IncompatibleComponent::IncompatibleComponent( void ):
65 SALOME_Exception( "IncompatibleComponent" )
69 IncompatibleComponent::IncompatibleComponent(const IncompatibleComponent &ex):
70 SALOME_Exception( ex )
74 /*! \class SALOME_LifeCycleCORBA
75 \brief A class to manage life cycle of SALOME components.
79 //=============================================================================
83 //=============================================================================
85 SALOME_LifeCycleCORBA::SALOME_LifeCycleCORBA(SALOME_NamingService_Abstract *ns)
87 // be sure to have an instance of traceCollector, when used via SWIG
90 char *xargv = (char*)"";
92 CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
93 // LocalTraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
97 _NS = new SALOME_NamingService(orb);
102 _NS->Change_Directory("/"); // mpv 250105: current directory may be not root
103 // (in SALOMEDS for an example)
104 // not enough: set a current directory in naming service is not thread safe
105 // if naming service instance is shared among several threads...
106 // ==> always use absolute path and don't rely on current directory!
107 //if( dynamic_cast<SALOME_NamingService *>(_NS) )
109 CORBA::Object_var obj =
110 _NS->Resolve(SALOME_ContainerManager::_ContainerManagerNameInNS);
111 if (CORBA::is_nil(obj))
112 throw SALOME_Exception("Error: Cannot resolve ContainerManager in Naming Service");
113 _ContManager=Engines::ContainerManager::_narrow(obj);
115 obj = _NS->Resolve(SALOME_ResourcesManager::_ResourcesManagerNameInNS);
116 if (CORBA::is_nil(obj))
117 throw SALOME_Exception("Error: Cannot resolve ResourceManager in Naming Service");
118 _ResManager=Engines::ResourcesManager::_narrow(obj);
122 //=============================================================================
126 //=============================================================================
128 SALOME_LifeCycleCORBA::~SALOME_LifeCycleCORBA()
130 if(_NSnew)delete _NSnew;
133 //=============================================================================
134 /*! \brief Find an already existing and registered component instance.
136 * \param params container parameters like type or name...
137 * \param componentName the name of component class
138 * \return a CORBA reference of the component instance, or _nil if not found
140 //=============================================================================
141 Engines::EngineComponent_ptr
142 SALOME_LifeCycleCORBA::FindComponent(const Engines::ContainerParameters& params,
143 const char *componentName)
145 if (! isKnownComponentClass(componentName))
146 return Engines::EngineComponent::_nil();
148 Engines::ContainerParameters new_params(params);
149 new_params.resource_params.componentList.length(1);
150 new_params.resource_params.componentList[0] = componentName;
151 new_params.resource_params.can_run_containers = true;
152 Engines::ResourceList_var listOfResources;
155 listOfResources = _ResManager->GetFittingResources(new_params.resource_params);
157 catch( const SALOME::SALOME_Exception& /*ex*/ ) //!< TODO: unused variable
159 return Engines::EngineComponent::_nil();
162 Engines::EngineComponent_var compo = _FindComponent(new_params,
166 return compo._retn();
169 //=============================================================================
170 /*! \brief Load a component instance on a container defined by its parameters
172 * \param params container parameters like type or name...
173 * \param componentName the name of component class
174 * \return a CORBA reference of the component instance, or _nil if problem
176 //=============================================================================
178 Engines::EngineComponent_ptr
179 SALOME_LifeCycleCORBA::LoadComponent(const Engines::ContainerParameters& params,
180 const char *componentName)
182 // --- Check if Component Name is known in ModuleCatalog
184 if (! isKnownComponentClass(componentName))
185 return Engines::EngineComponent::_nil();
187 Engines::ContainerParameters new_params(params);
188 new_params.resource_params.componentList.length(1);
189 new_params.resource_params.componentList[0] = componentName;
190 new_params.resource_params.can_run_containers = true;
192 Engines::ResourceList_var listOfResources;
195 listOfResources = _ResManager->GetFittingResources(new_params.resource_params);
197 catch( const SALOME::SALOME_Exception& /*ex*/ ) //!< TODO: unused variable
199 return Engines::EngineComponent::_nil();
201 new_params.resource_params.resList = listOfResources;
203 Engines::EngineComponent_var compo = _LoadComponent(new_params,
206 return compo._retn();
209 //=============================================================================
210 /*! \brief Find an already existing and registered component instance or load a new
211 * component instance on a container defined by its parameters.
213 * \param params container parameters like type or name...
214 * \param componentName the name of component class
215 * \return a CORBA reference of the component instance, or _nil if problem
217 //=============================================================================
219 Engines::EngineComponent_ptr
220 SALOME_LifeCycleCORBA::
221 FindOrLoad_Component(const Engines::ContainerParameters& params,
222 const char *componentName)
224 // --- Check if Component Name is known in ModuleCatalog
226 if (! isKnownComponentClass(componentName))
227 return Engines::EngineComponent::_nil();
229 Engines::ContainerParameters new_params(params);
230 new_params.resource_params.componentList.length(1);
231 new_params.resource_params.componentList[0] = componentName;
232 new_params.resource_params.can_run_containers = true;
234 Engines::ResourceList_var listOfResources;
237 listOfResources = _ResManager->GetFittingResources(new_params.resource_params);
239 catch( const SALOME::SALOME_Exception& /*ex*/ ) //!< TODO: unused variable
241 return Engines::EngineComponent::_nil();
244 Engines::EngineComponent_var compo = _FindComponent(new_params,
248 if(CORBA::is_nil(compo))
250 new_params.resource_params.resList = listOfResources;
251 compo = _LoadComponent(new_params,
255 return compo._retn();
258 //=============================================================================
259 /*! \brief Find an already existing and registered component instance or load a new
260 * component instance on a container defined by name
262 * \param containerName the name of container, under one of the forms
263 * - 1 aContainer (local container)
264 * - 2 machine/aContainer (container on hostname = machine)
265 * \param componentName the name of component class
266 * \return a CORBA reference of the component instance, or _nil if problem
268 //=============================================================================
270 Engines::EngineComponent_ptr
271 SALOME_LifeCycleCORBA::FindOrLoad_Component(const char *containerName,
272 const char *componentName)
274 MESSAGE("SALOME_LifeCycleCORBA::FindOrLoad_Component INTERACTIF " << containerName << " " << componentName ) ;
276 // --- Check if Component Name is known in ModuleCatalog
277 if (! isKnownComponentClass(componentName))
278 return Engines::EngineComponent::_nil();
280 // --- Check if containerName contains machine name (if yes: rg>0)
281 char *stContainer=strdup(containerName);
282 std::string st2Container(stContainer);
283 size_t rg=st2Container.find("/");
285 Engines::ContainerParameters params;
287 if (rg == std::string::npos)
289 // containerName doesn't contain "/" => Local container
290 params.container_name = CORBA::string_dup(stContainer);
294 stContainer[rg]='\0';
295 params.container_name = CORBA::string_dup(stContainer+rg+1);
296 params.resource_params.hostname = CORBA::string_dup(stContainer);
298 params.isMPI = false;
299 SCRUTE(params.container_name);
301 return FindOrLoad_Component(params, componentName);
304 //=============================================================================
305 /*! \brief Check if the component class is known in module catalog
307 * \param componentName the name of component class
308 * \return true if found, false otherwise
310 //=============================================================================
312 bool SALOME_LifeCycleCORBA::isKnownComponentClass(const char *componentName)
316 CORBA::Object_var obj = _NS->Resolve("/Kernel/ModulCatalog");
317 SALOME_ModuleCatalog::ModuleCatalog_var Catalog =
318 SALOME_ModuleCatalog::ModuleCatalog::_narrow(obj) ;
319 ASSERT(! CORBA::is_nil(Catalog));
320 SALOME_ModuleCatalog::Acomponent_var compoInfo =
321 Catalog->GetComponent(componentName);
322 if (CORBA::is_nil (compoInfo))
324 MESSAGE("Catalog Error: Component not found in the catalog " << componentName);
329 catch (ServiceUnreachable&)
331 INFOS("Caught exception: Naming Service Unreachable");
335 INFOS("Caught unknown exception.");
340 //=============================================================================
341 /*! \brief Initialisation of a given Engines::ResourceParameters with default values.
343 //=============================================================================
346 SALOME_LifeCycleCORBA::preSet(Engines::ResourceParameters& params)
349 params.hostname = "";
353 params.cpu_clock = 0;
355 params.nb_proc_per_node = 0;
357 params.can_launch_batch_jobs = false;
358 params.can_run_containers = false;
361 //=============================================================================
362 /*! \brief Initialisation of a given Engines::ContainerParameters with default values.
364 //=============================================================================
366 void SALOME_LifeCycleCORBA::preSet( Engines::ContainerParameters& params)
368 params.container_name = "";
370 params.workingdir = "";
372 params.isMPI = false;
373 params.parallelLib = "";
374 SALOME_LifeCycleCORBA::preSet(params.resource_params);
377 //=============================================================================
379 * \return a number of processors not 0, only for MPI containers
381 //=============================================================================
383 int SALOME_LifeCycleCORBA::NbProc(const Engines::ContainerParameters& params)
387 else if( params.nb_proc <= 0 )
390 return params.nb_proc;
393 //=============================================================================
394 /*! \brief Get the container manager
396 * \return the container Manager
398 //=============================================================================
400 Engines::ContainerManager_ptr SALOME_LifeCycleCORBA::getContainerManager()
402 Engines::ContainerManager_var contManager =
403 Engines::ContainerManager::_duplicate(_ContManager);
404 return contManager._retn();
407 //=============================================================================
408 /*! \brief Get the resources manager
410 * \return the container Manager
412 //=============================================================================
414 Engines::ResourcesManager_ptr SALOME_LifeCycleCORBA::getResourcesManager()
416 Engines::ResourcesManager_var resManager =
417 Engines::ResourcesManager::_duplicate(_ResManager);
418 return resManager._retn();
421 //=============================================================================
422 /*! \brief shutdown all the SALOME servers except SALOME_Session_Server and omniNames
424 //=============================================================================
426 void SALOME_LifeCycleCORBA::shutdownServers(bool shutdownLauncher)
428 // get each Container from NamingService => shutdown it
429 // (the order is inverse to the order of servers initialization)
431 SALOME::Session_var session = SALOME::Session::_nil();
433 CORBA::Object_var objS = _NS->Resolve("/Kernel/Session");
434 if (!CORBA::is_nil(objS))
436 session = SALOME::Session::_narrow(objS);
437 if (!CORBA::is_nil(session))
439 pid = session->getPID();
444 std::string hostname = Kernel_Utils::GetHostname();
446 // 1) ConnectionManager
449 CORBA::Object_var objCnM=_NS->Resolve("/ConnectionManager");
450 Engines::ConnectionManager_var connMan=Engines::ConnectionManager::_narrow(objCnM);
451 if ( !CORBA::is_nil(connMan) && ( pid != connMan->getPID() ) )
452 connMan->ShutdownWithExit();
454 catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
456 // ignore and continue
460 ts_req.tv_nsec=100000000;
463 //Wait some time so that ConnectionManager be completely shutdown
465 nanosleep(&ts_req,0);
471 CORBA::Object_var objSDS = _NS->Resolve("/Study");
472 SALOMEDS::Study_var study = SALOMEDS::Study::_narrow(objSDS) ;
473 if ( !CORBA::is_nil(study) && ( pid != study->getPID() ) )
475 _NS->Destroy_Name("/Study");
477 catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
479 // ignore and continue
482 //Wait some time so that study be completely shutdown
484 nanosleep(&ts_req,0);
490 CORBA::Object_var objMC=_NS->Resolve("/Kernel/ModulCatalog");
491 SALOME_ModuleCatalog::ModuleCatalog_var catalog = SALOME_ModuleCatalog::ModuleCatalog::_narrow(objMC);
492 if ( !CORBA::is_nil(catalog) && ( pid != catalog->getPID() ) )
494 _NS->Destroy_Name("/Kernel/ModulCatalog");
496 catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
498 // ignore and continue
501 //Wait some time so that ModulCatalog be completely shutdown
503 nanosleep(&ts_req,0);
505 // 4 ) Remote ScopeServer (the DataServer is hosted by SalomeLauncher shutdown right after on point 6)
508 CORBA::Object_var objDSM(_NS->Resolve(SALOMESDS::DataServerManager::NAME_IN_NS));
509 SALOME::DataServerManager_var dsm(SALOME::DataServerManager::_narrow(objDSM));
510 if ( !CORBA::is_nil(dsm) )
511 dsm->shutdownScopes();
513 catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
515 // ignore and continue
517 // 5) External server launcher (the ExternalServer is hosted by SalomeLauncher shutdown right after on point 6)
520 CORBA::Object_var objDSM(_NS->Resolve(SALOME_ExternalServerLauncher::NAME_IN_NS));
521 SALOME::ExternalServerLauncher_var dsm(SALOME::ExternalServerLauncher::_narrow(objDSM));
522 if ( !CORBA::is_nil(dsm) )
523 dsm->shutdownServers();
525 catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
527 // ignore and continue
532 if(shutdownLauncher){
533 CORBA::Object_var objSL = _NS->Resolve("/SalomeLauncher");
534 Engines::SalomeLauncher_var launcher = Engines::SalomeLauncher::_narrow(objSL);
535 if (!CORBA::is_nil(launcher) && (pid != launcher->getPID()))
536 launcher->Shutdown();
539 catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
541 // ignore and continue
544 //Wait some time so that launcher be completely shutdown
546 nanosleep(&ts_req,0);
552 CORBA::Object_var objR = _NS->Resolve("/Registry");
553 Registry::Components_var registry = Registry::Components::_narrow(objR);
554 if ( !CORBA::is_nil(registry) && ( pid != registry->getPID() ) )
555 registry->Shutdown();
556 _NS->Destroy_Name("/Registry");
558 catch(const CORBA::Exception& /*e*/) //!< TODO: unused variable
560 // ignore and continue
565 char *xargv = (char*)"";
566 char **argv = &xargv;
567 CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
569 CORBA::Object_var objLog = CORBA::Object::_nil();
570 CosNaming::NamingContext_var inc;
571 CORBA::Object_var theObj = CORBA::Object::_nil();
572 std::string stdname = "Logger";
573 CosNaming::Name name;
575 name[0].id = CORBA::string_dup(stdname.c_str());
578 if(!CORBA::is_nil(orb))
579 theObj = orb->resolve_initial_references("NameService");
580 if (!CORBA::is_nil(theObj))
581 inc = CosNaming::NamingContext::_narrow(theObj);
586 if(!CORBA::is_nil(inc))
590 objLog = inc->resolve(name);
591 SALOME_Logger::Logger_var logger = SALOME_Logger::Logger::_narrow(objLog);
592 if ( !CORBA::is_nil(logger) )
601 //=============================================================================
602 /*! \brief shutdown omniNames
604 //=============================================================================
606 void SALOME_LifeCycleCORBA::killOmniNames()
608 std::string portNumber (::getenv ("NSPORT") );
609 std::string python_exe;
611 python_exe = std::string("python3");
613 if ( !portNumber.empty() )
617 cmd = std::string("from salome_utils import killOmniNames; ");
618 cmd += std::string("killOmniNames(") + portNumber + "); ";
619 cmd = python_exe + std::string(" -c \"") + cmd +"\"";
621 system( cmd.c_str() );
623 cmd = std::string("from killSalomeWithPort import cleanApplication; ");
624 cmd += std::string("cleanApplication(") + portNumber + "); ";
625 cmd = python_exe + std::string(" -c \"") + cmd +"\"";
627 system( cmd.c_str() );
630 // shutdown portmanager
631 if ( !portNumber.empty() )
635 cmd = std::string("from PortManager import releasePort; ");
636 cmd += std::string("releasePort(") + portNumber + "); ";
637 cmd = python_exe + std::string(" -c \"") + cmd +"\"";
639 system( cmd.c_str() );
643 //=============================================================================
644 /*! \brief Find an already existing and registered component instance.
646 * - build a list of machines on which an instance of the component is running,
647 * - find the best machine among the list
649 * \param params machine parameters like type or name...
650 * \param componentName the name of component class
651 * \param listOfMachines list of machine address
652 * \return a CORBA reference of the component instance, or _nil if not found
654 //=============================================================================
656 Engines::EngineComponent_ptr
657 SALOME_LifeCycleCORBA::
658 _FindComponent(const Engines::ContainerParameters& params,
659 const char *componentName,
660 const Engines::ResourceList& listOfResources)
662 // --- build the list of machines on which the component is already running
663 const char *containerName = params.container_name;
664 int nbproc = NbProc(params);
666 Engines::ResourceList_var resourcesOK = new Engines::ResourceList;
668 unsigned int lghtOfresourcesOK = 0;
669 resourcesOK->length(listOfResources.length());
671 for(unsigned int i=0; i < listOfResources.length(); i++)
673 const char * currentResource = listOfResources[i];
674 Engines::ResourceDefinition_var resource_definition =
675 _ResManager->GetResourceDefinition(currentResource);
676 CORBA::Object_var obj = _NS->ResolveComponent(resource_definition->hostname.in(),
680 if (!CORBA::is_nil(obj))
681 resourcesOK[lghtOfresourcesOK++] = CORBA::string_dup(currentResource);
684 // --- find the best machine among the list
685 if(lghtOfresourcesOK != 0)
687 resourcesOK->length(lghtOfresourcesOK);
688 CORBA::String_var bestResource = _ResManager->FindFirst(resourcesOK);
689 Engines::ResourceDefinition_var resource_definition =
690 _ResManager->GetResourceDefinition(bestResource);
691 CORBA::Object_var obj = _NS->ResolveComponent(resource_definition->hostname.in(),
695 return Engines::EngineComponent::_narrow(obj);
698 return Engines::EngineComponent::_nil();
701 //=============================================================================
702 /*! \brief Load a component instance.
704 * - Finds a container in the list of machine or start one.
705 * - Try to load the component library in the container,
706 * - then create an instance of the component.
708 * \param params machine parameters like type or name...
709 * \param componentName the name of component class
710 * \return a CORBA reference of the component instance, or _nil if problem
712 //=============================================================================
714 Engines::EngineComponent_ptr
715 SALOME_LifeCycleCORBA::
716 _LoadComponent(const Engines::ContainerParameters& params,
717 const char *componentName)
719 MESSAGE("_LoadComponent, required " << params.container_name <<
720 " " << componentName << " " << NbProc(params));
722 Engines::ContainerParameters local_params(params);
723 local_params.mode = CORBA::string_dup("findorstart");
724 Engines::Container_var cont = _ContManager->GiveContainer(local_params);
725 if (CORBA::is_nil(cont)) return Engines::EngineComponent::_nil();
728 bool isLoadable = cont->load_component_Library(componentName,reason);
731 //std::cerr << reason << std::endl;
732 CORBA::string_free(reason);
733 return Engines::EngineComponent::_nil();
735 CORBA::string_free(reason);
737 Engines::EngineComponent_var myInstance =
738 cont->create_component_instance(componentName);
739 return myInstance._retn();
742 //=============================================================================
743 /*! \brief Load a parallel component instance.
745 * \param params machine parameters like type or name...
746 * \param componentName the name of component class
747 * \return a CORBA reference of the parallel component instance, or _nil if problem
749 //=============================================================================
750 Engines::EngineComponent_ptr
751 SALOME_LifeCycleCORBA::Load_ParallelComponent(const Engines::ContainerParameters& params,
752 const char *componentName)
754 MESSAGE("Entering LoadParallelComponent");
756 /*MESSAGE("Parameters : ");
757 MESSAGE("Container name : " << params.container_name);
758 MESSAGE("Number of component nodes : " << params.nb_component_nodes);
759 MESSAGE("Component Name : " << componentName);*/
761 Engines::ContainerParameters parms(params);
762 parms.resource_params.componentList.length(1);
763 parms.resource_params.componentList[0] = componentName;
764 parms.mode = CORBA::string_dup("findorstart");
766 MESSAGE("Starting Parallel Container");
767 Engines::Container_var cont = _ContManager->GiveContainer(parms);
768 if (CORBA::is_nil(cont)) {
769 INFOS("FindOrStartParallelContainer() returns a NULL container !");
770 return Engines::EngineComponent::_nil();
773 MESSAGE("Loading component library");
775 bool isLoadable = cont->load_component_Library(componentName,reason);
777 INFOS(componentName <<" library is not loadable !");
778 //std::cerr << reason << std::endl;
779 CORBA::string_free(reason);
780 return Engines::EngineComponent::_nil();
782 CORBA::string_free(reason);
784 MESSAGE("Creating component instance");
785 // @PARALLEL@ permits to identify that the component requested
786 // is a parallel component.
787 std::string name = std::string(componentName);
788 Engines::EngineComponent_var myInstance = cont->create_component_instance(name.c_str());
789 if (CORBA::is_nil(myInstance))
790 INFOS("create_component_instance returns a NULL component !");
791 return myInstance._retn();
794 /*! \brief copy a file from a source host to a destination host
795 * \param hostSrc the source host
796 * \param fileSrc the file to copy from the source host to the destination host
797 * \param hostDest the destination host
798 * \param fileDest the destination file
800 void SALOME_LifeCycleCORBA::copyFile(const char* hostSrc, const char* fileSrc, const char* hostDest, const char* fileDest)
802 if(strcmp(hostDest,"localhost") == 0)
804 //if localhost use a shortcut
805 SALOME_FileTransferCORBA transfer(hostSrc,fileSrc);
806 transfer.getLocalFile(fileDest);
810 Engines::ContainerManager_var contManager = getContainerManager();
812 Engines::ContainerParameters params;
815 params.resource_params.hostname = hostDest;
816 params.mode = CORBA::string_dup("findorstart");
817 Engines::Container_var containerDest = contManager->GiveContainer(params);
819 params.resource_params.hostname = hostSrc;
820 Engines::Container_var containerSrc = contManager->GiveContainer(params);
822 containerDest->copyFile(containerSrc,fileSrc,fileDest);
825 /*! \brief get the naming service used by the life cycle
827 * \return the naming service
829 SALOME_NamingService_Abstract * SALOME_LifeCycleCORBA::namingService()
834 /*! \brief get the orb used by the life cycle
838 CORBA::ORB_ptr SALOME_LifeCycleCORBA::orb()
840 SALOME_NamingService *NSC = dynamic_cast<SALOME_NamingService *>(_NS);
842 THROW_SALOME_EXCEPTION("SALOME_LifeCycleCORBA::orb : not a CORBA SALOME_NamingService ");