[Enterprise Extensions only]

C++ CORBA client, initializing the ORB

One of the first things that a C++ CORBA client application needs to do when it is started is to initialize the client ORB and return a pointer to it, by calling the CORBA::ORB_init() method. (If necessary, this method creates a new instance of the ORB.) For example, the following code extract initializes the ORB and return a pointers to it:

op = ::CORBA::ORB_init(argc, argv, "DSOM");
Where argc and argv refer to the properties specified on the command used to start the server. On the CORBA::ORB_init() method you must specify DSOM after the parameter argv.