The usage of tao_ir is as follows:
tao_ir [ORB options] command
[command-arguments]
ORB_options is the ORB options to be given. This is where options like "-ORBInitRef ImplRepoService=file://implrepo.ior" would be placed. command is one of the supported commands like add, remove, etc. command-arguments are dependent on the command used. For example, add will need a server name for registration, but list does not necessarily need any arguments.
There is a file in the current directory name implrepo.ior that contains the IOR of the Implementation Repository. The server executable is called airplane.exe and the POA name used by the object is plane. The server needs the -i option to use the IR and the IOR of the IR. So the command would be:
tao_ir -ORBInitRef ImplRepoService=file://implrepo.ior add plane -c "airplane.exe
-i file://implrepo.ior"
And if you want to later remove that server from the IR:
tao_ir -ORBInitRef ImplRepoService=file://implrepo.ior remove plane
Or if you wanted to update the entry to have a working directory of C:\airplane\.
tao_ir -ORBInitRef ImplRepoService=file://implrepo.ior update plane -w
"C:\airplane\"
tao_ir currently supports these commands:
Command | Description |
---|---|
activate | Activates a server through the IR |
add | Adds a server to the server database in the IR |
list | Lists the details of one server or lists all the servers registered in the IR |
remove | Removes a server from the server database in the IR |
shutdown | Shuts down a server through the IR |
update | Updates information for a server in the server database in the IR |
tao_ir [ORB options] activate name [-h]
Activate a server through the Implementation Repository. The name is the server (POA) name that is used to identify the server.
Option | Description |
---|---|
-h | Displays help for this command |
tao_ir [ORB options] add name [-h]
[-c command] [-w working_dir]
Creates a new server entry in the Implementation Repository. The name must be be the name of the POA that the object resides in.
Option | Description |
---|---|
-h | Displays help for this command |
-c command | Adds the command line string used to restart this server |
-w working_dir | Adds the working directory that is used for the server |
tao_ir [ORB options] list [name]
[-h] [-v]
Lists all or one of the server entries in the Implementation Repository. If a name is used, it will display verbose information about the server identified by its server (POA) name.
Option | Description |
---|---|
-h | Displays help for this command |
-v | When listing the list of servers (no name specified), display verbose information for all servers. |
tao_ir [ORB options] add name [-h]
Removes a server entry from the Implementation Repository. The name is the server (POA) name that is used to identify the server.
Option | Description |
---|---|
-h | Displays help for this command |
tao_ir [ORB options] shutdown name [-h]
Shuts down a server through the Implementation Repository. The name is the server (POA) name that is used to identify the server.
Option | Description |
---|---|
-h | Displays help for this command |
tao_ir [ORB options] add name [-h]
[-c command] [-w working_dir]
Update a server entry in the Implementation Repository.
The name
is the server (POA) name that is used to identify the server.
Option | Description |
---|---|
-h | Displays help for this command |
-c command | Changes the command line string used to restart this server |
-w working_dir | Changes the working directory that is used for the server |
Back to Implementation Repository