Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / orbsvcs / Trading_Service / Trading_Server.cpp
blob10fa4ba2c468409915653d287f3850eb91a8448f
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.
7 int
8 ACE_TMAIN (int argc, ACE_TCHAR* argv[])
10 Trading_Service trader;
12 try
14 int check = trader.init (argc, argv);
16 if (check != -1)
18 trader.run ();
20 else
21 ORBSVCS_ERROR_RETURN ((LM_ERROR,
22 "Failed to initialize the trader.\n"),
23 1);
25 catch (const CORBA::Exception& ex)
27 ex._tao_print_exception ("Trading Service");
28 return 1;
31 return 0;