Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / Bug_3683_Regression / server.cpp
blob5358c916c871a9185383d14af69cae3a952d7dcf
1 #include "Simple_util.h"
2 #include "Echo_i.h"
4 // This is the main driver program for the time and date server.
6 int
7 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
9 Server<Echo_i> server;
11 ACE_DEBUG ((LM_DEBUG,
12 ACE_TEXT ("\n\tEcho server\n\n")));
14 try
16 if (server.init ("Echo",
17 argc,
18 argv) == -1)
19 return 1;
20 else
22 server.run ();
25 catch (const CORBA::UserException& userex)
27 userex._tao_print_exception ("User Exception");
28 return -1;
30 catch (const CORBA::SystemException& sysex)
32 sysex._tao_print_exception ("System Exception");
33 return -1;
36 return 0;