Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / Trading_Service / Trading_Server.cpp
bloba5a16db7282008da7119d9d87ca1ed8b32a525f7
1 #include "orbsvcs/Log_Macros.h"
2 #include "Trading_Service.h"
3 #include "ace/OS_main.h"
5 // Driver function for the TAO Trading Service.
6 int
7 ACE_TMAIN (int argc, ACE_TCHAR* argv[])
9 Trading_Service trader;
11 try
13 int const check = trader.init (argc, argv);
15 if (check != -1)
17 trader.run ();
19 else
20 ORBSVCS_ERROR_RETURN ((LM_ERROR,
21 "Failed to initialize the trader.\n"),
22 1);
24 catch (const CORBA::Exception& ex)
26 ex._tao_print_exception ("Trading Service");
27 return 1;
30 return 0;