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