#include "utilities.h"
#include "Utils_SINGLETON.hxx"
#include "Utils_ORB_INIT.hxx"
+#include "OpUtil.hxx"
#include "SALOME_NamingService.hxx"
#include "NamingService_WaitForServerReadiness.hxx"
#include "SALOMEDS_StudyManager_i.hxx"
sleep(10);
+ string host = GetHostname();
+
SALOME_NamingService NS(orb);
- NamingService_WaitForServerReadiness(&NS, "/myStudyManager");
+ if(host.empty())
+ NamingService_WaitForServerReadiness(&NS, "/myStudyManager");
+ else {
+ string serverName = "/Containers/"+host+"/SuperVisionContainer";
+ NamingService_WaitForServerReadiness(&NS, serverName);
+ }
CORBA::Object_var obj = NS.Resolve( "/myStudyManager" );
if(CORBA::is_nil(obj)) {