Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / examples / CSD_Strategy / ThreadPool5 / server_main.cpp
blobd6c955a974c7825d3faa727af9f407166082e76d
1 #include "ServerApp.h"
2 #include "ace/Log_Msg.h"
3 #include "ace/CORBA_macros.h"
4 #include "tao/Environment.h"
5 #include "tao/Exception.h"
8 int
9 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
11 ACE_LOG_MSG->priority_mask(LM_TRACE |
12 LM_DEBUG |
13 LM_INFO |
14 LM_NOTICE |
15 LM_WARNING |
16 LM_ERROR |
17 LM_CRITICAL |
18 LM_ALERT |
19 LM_EMERGENCY,
20 ACE_Log_Msg::PROCESS);
22 ServerApp app;
24 try
26 int ret = app.run(argc,argv);
27 return ret == 1 ? 0 : ret;
29 catch (const CORBA::Exception& ex)
31 ex._tao_print_exception ("Caught exception:");
33 catch (...)
35 ACE_ERROR((LM_ERROR,
36 "(%P|%t) Unknown (...) exception caught in main() "
37 "for ServerApp\n"));
40 return 1;