#include "Session_NS_wrapper.hxx"
#include "SALOME_Container_i.hxx"
+#include "SALOME_Launcher.hxx"
#include "utilities.h"
Engines_Container_i *OldStyleNS::activateContainer(CORBA::ORB_var orb, PortableServer::POA_var poa, int argc, char **argv)
return _container;
}
+void OldStyleNS::activateContainerManager(CORBA::ORB_var orb)
+{
+ try {
+ PortableServer::POA_var root_poa=PortableServer::POA::_the_root_poa();
+ std::cout << "Activate SalomeLauncher ......!!!! " << std::endl;
+ new SALOME_Launcher(orb,root_poa);
+ }
+ catch(CORBA::SystemException&) {
+ INFOS("Caught CORBA::SystemException.");
+ }
+ catch(PortableServer::POA::WrongPolicy&) {
+ INFOS("Caught CORBA::WrongPolicyException.");
+ }
+ catch(PortableServer::POA::ServantAlreadyActive&) {
+ INFOS("Caught CORBA::ServantAlreadyActiveException");
+ }
+ catch(CORBA::Exception&) {
+ INFOS("Caught CORBA::Exception.");
+ }
+ catch(...) {
+ INFOS("Caught unknown exception.");
+ }
+}
+
Engines_Container_i *NewStyleNS::activateContainer(CORBA::ORB_var orb, PortableServer::POA_var poa, int argc, char **argv)
{
return KERNEL::getContainerSA();
}
+
+void NewStyleNS::activateContainerManager(CORBA::ORB_var orb)
+{
+ KERNEL::getLauncherSA();
+}
CORBA::Object_ptr Resolve(const char* Path) { return _NS.Resolve(Path); }
RealNS *getNS() { return &_NS; }
Engines_Container_i *activateContainer(CORBA::ORB_var orb, PortableServer::POA_var poa, int argc, char** argv);
+ void activateContainerManager(CORBA::ORB_var orb);
private:
RealNS _NS;
};
CORBA::Object_ptr Resolve(const char* Path) { return _NS.Resolve(Path); }
RealNS *getNS() { return &_NS; }
Engines_Container_i *activateContainer(CORBA::ORB_var orb, PortableServer::POA_var poa, int argc, char** argv);
+ void activateContainerManager(CORBA::ORB_var orb);
private:
RealNS _NS;
};
template<class MY_NS>
void Session_ServerThread<MY_NS>::ActivateContainerManager(int /*argc*/, char** /*argv*/)
{
- try {
- PortableServer::POA_var root_poa=PortableServer::POA::_the_root_poa();
- std::cout << "Activate SalomeLauncher ......!!!! " << std::endl;
- new SALOME_Launcher(_orb,root_poa);
- }
- catch(CORBA::SystemException&) {
- INFOS("Caught CORBA::SystemException.");
- }
- catch(PortableServer::POA::WrongPolicy&) {
- INFOS("Caught CORBA::WrongPolicyException.");
- }
- catch(PortableServer::POA::ServantAlreadyActive&) {
- INFOS("Caught CORBA::ServantAlreadyActiveException");
- }
- catch(CORBA::Exception&) {
- INFOS("Caught CORBA::Exception.");
- }
- catch(...) {
- INFOS("Caught unknown exception.");
- }
+ this->_NS->activateContainerManager(this->_orb);
}
template<class MY_NS>