Skip to main content

Product: OpenFusion TAO
Version: ALL

Description:

How to get a server to activate automatically?

 

Resolution:

This can be done as follows:

In the examples supplied with the distribution there is a Simple/Bank example.

The steps you need to follow to get automatic activation of a persistent server to work are as follows:

1. Start the ImplRepo and the Activator:

./ImplRepo_Service -o imr.ior
./ImR_Activator -ORBInitRef ImplRepoService=file://imr.ior

2. Tell the ImplRepo the name of the POA ("child_poa") and how to start the server:

./tao_imr -ORBInitRef ImplRepoService=file://imr.ior add child_poa -c "/home/dts/tao/support/TAO157/bank/server -ORBUseIMR 1 -ORBInitRef ImplRepoService=file:///home/dts/tao/gcc332/tao14/TAO/orbsvcs/ImplRepo_Service/imr.ior -o /home/dts/tao/gcc332/tao14/TAO/orbsvcs/ImplRepo_Service/server.ior"

3. Start the server to create an IOR which will work with the IMR:

./tao_imr -ORBInitRef ImplRepoService=file://imr.ior activate child_poa

4. Shutdown the server:

./tao_imr -ORBInitRef ImplRepoService=file://imr.ior shutdown child_poa

5. Now run the client:

./client -f /home/dts/tao/gcc332/tao14/TAO/orbsvcs/ImplRepo_Service/server.ior

6. The server should start allowing the client to do what it needs to do.


#KnowledgeDocs
#OpenFusion