summaryrefslogtreecommitdiff
path: root/trunk/TAO/orbsvcs/tests/ImplRepo/README
blob: 82647bcdb191bb1cd72f3d6506bfc67b46d79e33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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.