summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-12 22:24:16 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-12 22:24:16 +0000
commit04500f0f70496686c9c316c169f1648e06427cfc (patch)
treecd8c138ddb7ace6cf73e717ca3bbdaea22271bea /TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp
parentf5a5e479a712bef0eb49ebb62ba0f2804a978935 (diff)
downloadATCD-04500f0f70496686c9c316c169f1648e06427cfc.tar.gz
Added the new Nestea Bookshelf test.
Diffstat (limited to 'TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp')
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp b/TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp
new file mode 100644
index 00000000000..e78110f1e48
--- /dev/null
+++ b/TAO/orbsvcs/tests/ImplRepo/nestea_server.cpp
@@ -0,0 +1,37 @@
+// $Id$
+
+#include "nestea_server_i.h"
+
+ACE_RCSID(ImplRepo, nestea_server, "$Id$")
+
+int
+main (int argc, char *argv[])
+{
+ Nestea_Server_i server;
+
+ ACE_DEBUG ((LM_DEBUG, "\n\tPaper Nestea Server\n\n"));
+ TAO_TRY
+ {
+ if (server.init (argc, argv, TAO_TRY_ENV) == -1)
+ return -1;
+ else
+ {
+ server.run (TAO_TRY_ENV);
+ TAO_CHECK_ENV;
+ }
+ }
+ TAO_CATCH (CORBA::SystemException, sysex)
+ {
+ ACE_UNUSED_ARG (sysex);
+ TAO_TRY_ENV.print_exception ("System Exception");
+ return -1;
+ }
+ TAO_CATCH (CORBA::UserException, userex)
+ {
+ ACE_UNUSED_ARG (userex);
+ TAO_TRY_ENV.print_exception ("User Exception");
+ return -1;
+ }
+ TAO_ENDTRY;
+ return 0;
+}