Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / ImplRepo / airplane_server.cpp
blob7db53aa598b93bbd0fc30d01ceab6164ba0e4f6f
1 #include "airplane_server_i.h"
3 int
4 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
6 Airplane_Server_i server;
8 ACE_DEBUG ((LM_DEBUG, "\n\tPaper Airplane Server\n\n"));
10 try
12 if (server.init (argc, argv) == -1)
13 return -1;
15 int const retval = server.run ();
17 ACE_DEBUG ((LM_DEBUG, "Paper Airplane Server says goodnight\n"));
19 return retval;
21 catch (const CORBA::SystemException& sysex)
23 sysex._tao_print_exception ("System Exception");
25 catch (const CORBA::UserException& userex)
27 userex._tao_print_exception ("User Exception");
30 return 1;