Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / performance-tests / Pluggable / server.cpp
blob97ad684db6cc35db476c8647334164e7639e9ef4
1 #include "PP_Test_Server.h"
2 #include "tao/Timeprobe.h"
4 // This runs the server test.
6 int
7 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
9 PP_Test_Server pp_test_server;
11 ACE_DEBUG ((LM_DEBUG,
12 "\n\tPluggable_Test: server\n\n"));
15 try
17 int status = pp_test_server.init (argc,
18 argv);
20 if (status == -1)
22 ACE_ERROR_RETURN ((LM_ERROR,
23 "Initialization Error\n"),
24 -1);
26 else
28 pp_test_server.run ();
31 catch (const CORBA::SystemException& sysex)
33 sysex._tao_print_exception ("System Exception");
34 return -1;
36 catch (const CORBA::UserException& userex)
38 userex._tao_print_exception ("User Exception");
39 return -1;
41 ACE_TIMEPROBE_PRINT;
43 return 0;