In order for TAO to operate correctly, the following environment variables must be set:
ACE_ROOT=<TAO Installation directory>
ACE_ROOT=<TAO Installation directory>
TAO_ROOT=<TAO Installation directory>
TAO_ROOT=<TAO Installation directory>
TAO_IDL=<TAO Installation directory>
/bin/tao_idl
TAO_IDL=<TAO Installation
directory>\bin\tao_idl.exe
bin
directory to your PATH
environment variable, for
example:
PATH=$PATH:<TAO Installation
directory>/bin
PATH=%PATH%;<TAO Installation
directory>/bin;<TAO Installation
directory>/lib
lib
directory, so that it picks all of the dlls and libs, since there
is no LD_LIBRARY_PATH
or SHLIB_PATH
environment variable.
lib
directory to the appropriate
environment variable, for example:
SHLIB_PATH=<TAO Installation
directory>/lib:$SHLIB_PATH
LD_LIBRARY_PATH=<TAO Installation
directory>/lib:$LD_LIBRARY_PATH
lib
directory. This instructs the
makefiles where to make a copy of the generated OpenFusion example
library, for example:
INSLIB=<TAO Installation
directory>/lib:
To Bootstrap the OpenFusion Services while using TAO, we recommend
that you use the -ORBInitRef
parameter with the name of the
service and the location of the IOR. For example, if you had a client
called MyClient and you wanted to bootstrap the OpenFusion NameService,
then you would run your client like this:
MyClient -ORBInitRef
NameService=file:///<INSTALL_DIR>/openfusion/domains/
OpenFusion/localhost/NameService/NameSingleton/NameSingleton.ior
When your program initializes the ORB, it will pick up this property
and when you perform a resolve_initial_references
on the
NameService, it will look at the file you provided and resolve the
service from that.
Next, you develop your clients and servers as you normally would, but including the relevant OpenFusion files.