Skip to main content

Product: OpenFusion TAO
Version: ALL

Tao has a number of configuration options that can be passed into the ORB on the command line. These are documented in the html that comes with the distribution.

These options can also be set programmatically. When the orb is initialised using the ORB_init method it receives a reference to an argc and argv vector from the client. It examines argc for ORB specific options beginning with –ORB. The ORB configuration options can be passed into the argc vector which is then passed into the ORB_init method.


For example:

int argc__= 3;
char* argv__[] = { "client", "-ORBDebugLevel", "5" };

CORBA::ORB_var orb = CORBA::ORB_init (argc__, argv__, "myORB");

Each of the -ORB statements needs to be passed in as two separate parameters. For example to set the -ORBReactorType you will need to have "-ORBReactorType" "tp".

Additionally the first argument should always be the name of the program or you will see errors.


#KnowledgeDocs
#OpenFusion