Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / ImplRepo / nestea_server.cpp
blobf950bfcc84ea2c61f193e89c4f02006676038f4e
1 #include "nestea_server_i.h"
5 int
6 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
8 Nestea_Server_i server;
10 ACE_DEBUG ((LM_DEBUG, "\n\tNestea Bookshelf Server\n\n"));
12 try
14 int retval = server.init (argc, argv);
16 if (retval == -1)
17 return -1;
18 else
20 server.run ();
23 catch (const CORBA::SystemException& sysex)
25 sysex._tao_print_exception ("System Exception");
26 return -1;
28 catch (const CORBA::UserException& userex)
30 userex._tao_print_exception ("User Exception");
31 return -1;
34 ACE_DEBUG ((LM_DEBUG, "Nestea Bookshelf Server says goodnight\n"));
36 return 0;