Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / examples / CSD_Strategy / ThreadPool / server_main.cpp
blobdb9540357b3abdd8a746e574aa23fcb73a3682bb
1 #include "ServerApp.h"
2 #include "ace/Log_Msg.h"
3 #include "tao/Exception.h"
6 int
7 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
9 ACE_LOG_MSG->priority_mask(LM_TRACE |
10 LM_DEBUG |
11 LM_INFO |
12 LM_NOTICE |
13 LM_WARNING |
14 LM_ERROR |
15 LM_CRITICAL |
16 LM_ALERT |
17 LM_EMERGENCY,
18 ACE_Log_Msg::PROCESS);
20 ServerApp app;
22 try
24 int ret = app.run(argc,argv);
25 return ret == 1 ? 0 : ret;
27 catch (const CORBA::Exception& ex)
29 ex._tao_print_exception ("Caught exception in main() for ServerApp");
31 catch (...)
33 ACE_ERROR((LM_ERROR,
34 "(%P|%t) Unknown (...) exception caught in main() "
35 "for ServerApp\n"));
38 return 1;