diff options
Diffstat (limited to 'TAO/orbsvcs/tests/ImplRepo/README')
-rw-r--r-- | TAO/orbsvcs/tests/ImplRepo/README | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/README b/TAO/orbsvcs/tests/ImplRepo/README new file mode 100644 index 00000000000..82647bcdb19 --- /dev/null +++ b/TAO/orbsvcs/tests/ImplRepo/README @@ -0,0 +1,75 @@ +$Id$ + +Here are a few tests for the ImplRepo. The best way to test is to +use the run_test.pl passing it one of the following arguments: + +airplane runs airplane client and server without ImplRepo. +airplane_ir same as above but uses ImplRepo. +nt_service_ir same as above but runs ImplRepo as an NT service. +nestea runs nestea client and server without ImplRepo. +nestea_ir same as above but uses ImplRepo. +both_ir combines airplane_ir and nestea_ir. +persistent_ir same as airplane_ir, but using persistent ImplRepo. + +The nt_service_ir test will work only on Win32 platforms. For the test to +run successfully, these conditions must be met: + +-- The user must be logged in as administrator, or have administrative + priveleges (in order to register an NT service). + +-- ACE_ROOT must be set to the ACE_wrappers directory in the system + environment. + +-- ACE_ROOT/bin must be in the system path. + +How to use NT ImR Services +================================== + +The first step is to install one or both ImplRepo applications as NT +services. To do this run: + +ImplRepo_Service -c install +ImR_Activator -c install + +If you want to reinstall or change the installed settings then you +must first use: + +ImplRepo_Service -c remove +ImR_Activator -c remove + +Any extra command line options, will be saved in the Windows registry, +and used when the service is actually started. + +In the following example I start the activator service, and then the +ImplRepo itself on port 8888 using iiop. I also tell the activator to use +xml as its persistence format, and to timeout unresponsive servers in 60 seconds. +I disable debug output for both, as there seems to be no way to access it anyway. + +* copy the exe's to the same location as their dll's +cd %ace_root%\lib +copy %tao_root%\orbsvcs\ImplRepo_Service\*.exe .\ + +* Register the services. (You may have to remove them first) +ImR_Activator -c install -x activator.xml -t 60 -d 0 -orbinitref ImplRepoService=corbaloc::localhost:8888/ImplRepoService +ImplRepo_Service -c install -d 0 -orbendpoint iiop://:8888 + +* Start both services. +net start taoimrlocator +net start taoimractivator + +* Register a server +cd %tao_root%\orbsvcs\tests\ImplRepo +%tao_root%\orbsvcs\ImplRepo_service\tao_imr add airplane_server -orbuseimr 1 -orbinitref ImplRepoService=corbaloc::localhost:8888/ImplRepoService + +* Run the server +airplane_server -o airplane.ior -orbuseimr 1 -orbinitref ImplRepoService=corbaloc::localhost:8888/ImplRepoService + +* Run the client +airplane_client -k file://airplane.ior +--or-- +airplane_client -k corbaloc::localhost:8888/airplane_server + + +More information about the Implementation Repository can be found in +TAO/docs. + |