2 //=============================================================================
3 // File : Utils_ORB_INIT.cxx
4 // Created : lun nov 5 16:04:47 CET 2001
5 // Author : Antoine YESSAYAN, EDF
7 // Copyright : EDF 2001
9 //=============================================================================
12 # include "Utils_ORB_INIT.hxx"
13 # include "utilities.h"
15 ORB_INIT::ORB_INIT( void ): _orb( CORBA::ORB::_nil() )
23 if ( ! CORBA::is_nil( _orb ) )
25 MESSAGE("appel _orb->destroy()") ;
27 MESSAGE("retour _orb->destroy()") ;
32 CORBA::ORB_var &ORB_INIT::operator() ( int argc , char **argv ) throw( CommException )
34 if ( CORBA::is_nil( _orb ) )
38 _orb = CORBA::ORB_init( argc , argv ) ;
39 //set GIOP message size equal to 50Mb for transferring brep shapes as
40 //sequence of bytes using C++ streams
41 omniORB::MaxMessageSize(100*1024*1024);
43 catch( const CORBA::Exception &ex )
45 throw CommException( "Unable to create an ORB connexion" ) ;