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()
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.
{
// 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;
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 )