]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix remote containers for mode SSL & CEA & SAT.
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Fri, 25 Mar 2022 13:16:11 +0000 (14:16 +0100)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Fri, 25 Mar 2022 13:16:11 +0000 (14:16 +0100)
bin/appliskel/runRemoteSSL.sh
src/Container/SALOME_ContainerManager.cxx

index f7c7557a84654bbc0374cf69a0897e20e96fa276..3e9cbbf7f3d58a1b05909615ed5ce0cad95ef939 100755 (executable)
@@ -53,9 +53,6 @@ else
   . "${HOME}/${APPLI}/envd" "${HOME}/${APPLI}"
 fi
 
-# --- set the OMNIORB_CONFIG file and environment relative to this run of SALOME
-export CUSTOM_NS_IOR=$1
-
 #go to the requested working directory if any
 if test "x$2" == "xWORKINGDIR"; then
   if test "x$3" = "x\$TEMPDIR"; then
@@ -86,4 +83,4 @@ fi
 
 # --- execute the command in the SALOME environment
 
-"${KERNEL_ROOT_DIR}/bin/salome/envSalome.py" /bin/sh -c "$* $CUSTOM_NS_IOR"
+"${KERNEL_ROOT_DIR}/bin/salome/envSalome.py" /bin/sh -c "$* "
index 6039bd28afa80d7a67c4111bbfa87b037fa84279..a597be220518db1bcc26bdd96cd66e7d0140170d 100644 (file)
@@ -789,8 +789,14 @@ SALOME_ContainerManager::BuildCommandToLaunchRemoteContainer(const std::string&
     else
       command += " " +container_exe+ " ";
 
-    command += _NS->ContainerName(params);
-    if(!this->_isSSL)
+    command += _NS->ContainerName(params) + " ";
+    if(this->_isSSL)
+    {
+      Engines::EmbeddedNamingService_var ns = GetEmbeddedNamingService();
+      CORBA::String_var iorNS = _orb->object_to_string(ns);
+      command += std::string(iorNS);
+    }
+    else //if(!this->_isSSL)
     {
       command += " -";
       AddOmninamesParams(command);
@@ -1290,9 +1296,11 @@ std::string SALOME_ContainerManager::getCommandToRunRemoteProcess(AccessProtocol
   else
     remoteapplipath = applipath;
 
-  ASSERT(GetenvThreadSafe("NSHOST"));
-  ASSERT(GetenvThreadSafe("NSPORT"));
-
+  if(!this->_isSSL)
+  {
+    ASSERT(GetenvThreadSafe("NSHOST"));
+    ASSERT(GetenvThreadSafe("NSPORT"));
+  }
   // $APPLI points either to an application directory, or to a salome launcher file
   // we prepare the remote command according to the case
   struct stat statbuf;
@@ -1301,11 +1309,14 @@ std::string SALOME_ContainerManager::getCommandToRunRemoteProcess(AccessProtocol
     // if $APPLI is a regular file, we asume it's a salome Launcher
     // generate a command with a salome launcher
     command << remoteapplipath 
-            << " remote"
-            << " -m "
-            <<  GetenvThreadSafeAsString("NSHOST") // hostname of CORBA name server
-            << " -p "
-            <<  GetenvThreadSafeAsString("NSPORT"); // port of CORBA name server
+            << " remote" ;
+    if(!this->_isSSL)
+    {
+      command << " -m "
+              <<  GetenvThreadSafeAsString("NSHOST") // hostname of CORBA name server
+              << " -p "
+              <<  GetenvThreadSafeAsString("NSPORT"); // port of CORBA name server
+    }
     if (workdir != "")
       command << "-d " << workdir;
     command <<  " -- " ;