Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / examples / CSD_Strategy / ThreadPool3 / client_main.cpp
blobb197ebd4588cb5f55d49b5cdfec000b4f4769024
1 #include "ClientApp.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);
21 ClientApp 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 ClientApp\n"));
39 return 1;