Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Running as an NT service

The ImplRepo_Service.exe can now also function as a Windows NT Service. The -c option can be used to install and remove the service (this requires Administrator access on the machine).

When using the ImplRepo_Service as a service, it must have all of its required ACE/TAO DLL's in the path or in the same directory. For example, the copies ImplRepo_Service.exe to the ACE_wrappers\bin directory before using "-c install".
The service can be then started either from the Windows NT "Services" Admin Tool or via the "net" program on the command line:

net start "TAO Implementation Repository"

The Implementation Repository supports start and stop but not pause.

Service Options

When installing the Implementation Repository as a service, there isn't an opportunity to specify any command line options. So if you want to specify that the ImplRepo_Service should output to a file or set the debug level to 2, for example, you will have to manually edit the registry to do this.

The magic key for extra options to pass to the Implementation Repository is SYSTEM\CurrentControlSet\Services\TAOImplRepo\Parameters\ORBOptions under HKEY_LOCAL_MACHINE. This value should be a MULTI_SZ value with each parameter in separate strings. Since it is a MULTI_SZ, you will need to use regedt32.exe to add this, since regedit.exe doesn't support MULTI_SZ types yet.

So let's say you want to up the debug level to 2 and record the output to the C:\ImplRepo.log file. First you will have to install the ImplRepo_Service as a service to create the TAOImplRepo subkey under Services. Now fire up regedt32 and browse to the TAOImplRepo key. The Parameters key under TAOImplRepo will now need to be created. And now you can create the "ORBOptions" value in Parameters. Now when the multi-string editor pops up, add the following on separate lines:

And when the ImplRepo_Service is run as a service (and only when it runs as a service) it will use these options.

Generated on Mon Jun 16 20:04:38 2003 for TAO_Implementation_Repository by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002