Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / orbsvcs / tests / ImplRepo / nestea_server.cpp
blob82f97385c7249902d1dd35aeabc593a172f9df73
1 #include "nestea_server_i.h"
4 int
5 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
7 Nestea_Server_i server;
9 ACE_DEBUG ((LM_DEBUG, "\n\tNestea Bookshelf Server\n\n"));
11 try
13 int retval = server.init (argc, argv);
15 if (retval == -1)
16 return -1;
17 else
19 server.run ();
22 catch (const CORBA::SystemException& sysex)
24 sysex._tao_print_exception ("System Exception");
25 return -1;
27 catch (const CORBA::UserException& userex)
29 userex._tao_print_exception ("User Exception");
30 return -1;
33 ACE_DEBUG ((LM_DEBUG, "Nestea Bookshelf Server says goodnight\n"));
35 return 0;