diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-17 14:31:11 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-17 14:31:11 +0000 |
commit | 3dc2068c1f9a2df15de622521eefb05cc6bbeab8 (patch) | |
tree | dd7a2cb059abf7ccd7edc3ca8117bb26bd53113d /TAO/examples/POA/On_Demand_Loading/server.cpp | |
parent | 320057586184ee749e07502b4363ee8f8d32dc5f (diff) | |
download | ATCD-ACE-4_6_29.tar.gz |
This commit was manufactured by cvs2svn to create tag 'ACE-4_6_29'.ACE-4_6_29
Diffstat (limited to 'TAO/examples/POA/On_Demand_Loading/server.cpp')
-rw-r--r-- | TAO/examples/POA/On_Demand_Loading/server.cpp | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/TAO/examples/POA/On_Demand_Loading/server.cpp b/TAO/examples/POA/On_Demand_Loading/server.cpp deleted file mode 100644 index f07b26ba52c..00000000000 --- a/TAO/examples/POA/On_Demand_Loading/server.cpp +++ /dev/null @@ -1,68 +0,0 @@ -// $Id$ - -//============================================================================ -// -// = FILENAME -// server.cpp -// -// = DESCRIPTION -// Server application to test the Servant Activator and Servant Locator. -// -// = AUTHOR -// Kirthika Parameswaran <kirthika@cs.wustl.edu> -// -//============================================================================= - -#include "Server_Manager.h" - -ACE_RCSID(On_Demand_Loading, server, "$Id$") - -int -main (int argc, char **argv) -{ - Server_i server; - - if (server.init (argc, argv) != 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Failure during Initialisation: init ()\n"), - -1); - - // This POA is used to test the Servant Activator interface and - // hence has an RETAIN policy. - PortableServer::POA_var first_poa = - server.create_poa ("firstPOA", 1); - - if (first_poa.in () == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Failure during first POA creation: create_poa ()\n"), - -1); - - // This poa is used to test the Servant Activator interface and - // hence has an NONRETAIN policy. - PortableServer::POA_var second_poa = - server.create_poa ("secondPOA", 0); - - if (second_poa.in () == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Failure during second POA creation: create_poa ()\n"), - -1); - - // The Servant Activator interface is created and initialised. - if (server.create_activator (first_poa) != 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Failure during first Servant Activator creation: create_activator()\n"), - -1); - - // The Servant Locator interface is created and initialised. - if (server.create_locator (second_poa) !=0) - ACE_ERROR_RETURN ((LM_ERROR, - "Failure during first Servant Locator creation: create_activator()\n"), - -1); - - // The server begins processing requests. - if (server.run () != 0) - ACE_ERROR_RETURN ((LM_ERROR, - "Failure during request processing: run ()\n"), - -1); - return 0; -} |