]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
To provide ability to handle big files (up to 2 GBytes) MERGE_MULTIPR_EVOLUTION
authorapo <apo@opencascade.com>
Fri, 26 Oct 2007 13:19:17 +0000 (13:19 +0000)
committerapo <apo@opencascade.com>
Fri, 26 Oct 2007 13:19:17 +0000 (13:19 +0000)
bin/launchSalome.py
bin/runSalome.py
src/SALOMEDS/SALOMEDS_Client.cxx
src/SALOMEDS/SALOMEDS_Server.cxx
src/Utils/Utils_ORB_INIT.cxx

index c8fe7d52efd9aefea7bca8e339c42a06b6cb4035..08aea588ace98c581cdd1ccd830f8ee2034bfd39 100755 (executable)
@@ -59,7 +59,6 @@ if freePort < 0 :
     
 else :
     omniCfgFileContent = "InitRef = NameService=corbaname::" + str(hostName) + ":" + str(freePort);
-    omniCfgFileContent += "\ngiopMaxMsgSize = 2097152000  # 2 GBytes";
     omniCfgFilePath = os.environ.get('HOME') + "/" + ".omniORB_" + str(hostName) + "_" + str(freePort) + ".cfg";
 
     omni_file = file(omniCfgFilePath,'w+');
index c59046cc8b7865dd3a82f0c41bdb0f491fc6c727..89cf14b67d543d16d0ab4e54a7387186c8d4981c 100755 (executable)
@@ -762,8 +762,12 @@ def searchFreePort(args, save_config=1):
             f = open(os.environ['OMNIORB_CONFIG'], "w")
             import CORBA
             if CORBA.ORB_ID == "omniORB4":
+                initref += "\ngiopMaxMsgSize = 2097152000  # 2 GBytes";
+                initref += "\ntraceLevel = 0 # critical errors only";
                 f.write("InitRef = %s\n"%(initref))
             else:
+                initref += "\nORBgiopMaxMsgSize = 2097152000  # 2 GBytes";
+                initref += "\nORBtraceLevel = 0 # critical errors only";
                 f.write("ORBInitRef %s\n"%(initref))
                 pass
             f.close()
index c100e89750a9fd304b1f967ddbf22da74feb4e1a..dfe922beb318ba1dede1bdea1f9c594365ddbcb0 100644 (file)
@@ -282,11 +282,9 @@ int main(int argc, char** argv)
   try {
     // Initialise the ORB.
 #if OMNIORB_VERSION >= 4
-    const char* options[][2] = { { "giopMaxMsgSize", "104857600" }, { 0, 0 } };
-    CORBA::ORB_var orb = CORBA::ORB_init( argc , argv , "omniORB4", options) ;
+    CORBA::ORB_var orb = CORBA::ORB_init( argc, argv, "omniORB4" ) ;
 #else
-    CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, "omniORB3");
-    omniORB::MaxMessageSize(100 * 1024 * 1024);
+    CORBA::ORB_var orb = CORBA::ORB_init( argc, argv, "omniORB3" );
 #endif
     
     // Obtain a reference to the root POA.
index 397f397723a3de14065d65e8d7a93dea2a632408..b2d2dd913e172c59f1aa019a8e90543e2a7a84ab 100644 (file)
@@ -56,11 +56,9 @@ int main(int argc, char** argv)
     {
       // Initialise the ORB.
 #if OMNIORB_VERSION >= 4
-      const char* options[][2] = { { "giopMaxMsgSize", "104857600" }, { 0, 0 } };
-      CORBA::ORB_var orb = CORBA::ORB_init( argc , argv , "omniORB4", options) ;
+      CORBA::ORB_var orb = CORBA::ORB_init( argc, argv, "omniORB4" ) ;
 #else
-      CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, "omniORB3");
-      omniORB::MaxMessageSize(100 * 1024 * 1024);
+      CORBA::ORB_var orb = CORBA::ORB_init( argc, argv, "omniORB3" );
 #endif      
       // Obtain a reference to the root POA.
       long TIMESleep = 500000000;
index 9fe53556438f3d660b222ce192dce3ba63d4bf71..0a8ddf697a140f8f42e3dce4b9e3f528e316d42d 100644 (file)
@@ -55,13 +55,9 @@ CORBA::ORB_var &ORB_INIT::operator() ( int argc , char **argv ) throw( CommExcep
        try
          {
 #if OMNIORB_VERSION >= 4
-           const char* options[][2] = { { "giopMaxMsgSize", "104857600" }, { 0, 0 } };
-           _orb = CORBA::ORB_init( argc , argv , "omniORB4", options) ;
+           _orb = CORBA::ORB_init( argc, argv, "omniORB4" ) ;
 #else
-           _orb = CORBA::ORB_init( argc , argv ) ;
-           //set GIOP message size equal to 50Mb for transferring brep shapes as 
-           //sequence of bytes using C++ streams
-           omniORB::MaxMessageSize(100*1024*1024);
+           _orb = CORBA::ORB_init( argc, argv, "omniORB3" ) ;
 #endif
          }
        catch( const CORBA::Exception &ex )