Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / examples / CSD_Strategy / ThreadPool2 / server_main.cpp
blobc0bf7adb85d92a7e416244083a8574c0a4ab4dff
1 #include "ServerApp.h"
2 #include "ace/Log_Msg.h"
3 #include "tao/Exception.h"
4 #include "tao/Environment.h"
7 int
8 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
10 ACE_LOG_MSG->priority_mask(LM_TRACE |
11 LM_DEBUG |
12 LM_INFO |
13 LM_NOTICE |
14 LM_WARNING |
15 LM_ERROR |
16 LM_CRITICAL |
17 LM_ALERT |
18 LM_EMERGENCY,
19 ACE_Log_Msg::PROCESS);
21 ServerApp app;
23 try
25 int ret = app.run(argc,argv);
26 return ret == 1 ? 0 : ret;
28 catch (const CORBA::Exception& ex)
30 ex._tao_print_exception ("Caught exception:");
32 catch (...)
34 ACE_ERROR((LM_ERROR,
35 "(%P|%t) Unknown (...) exception caught in main() "
36 "for ServerApp\n"));
39 return 1;