diff options
Diffstat (limited to 'TAO/orbsvcs/tests/ImplRepo/airplane_server.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/ImplRepo/airplane_server.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/airplane_server.cpp b/TAO/orbsvcs/tests/ImplRepo/airplane_server.cpp new file mode 100644 index 00000000000..5c3ab7d7763 --- /dev/null +++ b/TAO/orbsvcs/tests/ImplRepo/airplane_server.cpp @@ -0,0 +1,40 @@ +// $Id$ + +#include "airplane_server_i.h" + +ACE_RCSID (ImplRepo, + airplane_server, + "$Id$") + +int +main (int argc, char *argv[]) +{ + Airplane_Server_i server; + + ACE_DEBUG ((LM_DEBUG, "\n\tPaper Airplane Server\n\n")); + + try + { + int retval = server.init (argc, argv); + + if (retval == -1) + return -1; + + + retval = server.run (); + + ACE_DEBUG ((LM_DEBUG, "Paper Airplane Server says goodnight\n")); + + return retval; + } + catch (const CORBA::SystemException& sysex) + { + sysex._tao_print_exception ("System Exception"); + } + catch (const CORBA::UserException& userex) + { + userex._tao_print_exception ("User Exception"); + } + + return 1; +} |