diff options
Diffstat (limited to 'ACE/TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp')
-rw-r--r-- | ACE/TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ACE/TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp b/ACE/TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp new file mode 100644 index 00000000000..f6445a574ea --- /dev/null +++ b/ACE/TAO/orbsvcs/examples/ImR/Advanced/server_main.cpp @@ -0,0 +1,23 @@ +//$Id$ +#include "TestServer.h" + +#include <ace/streams.h> + +int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) +{ + try + { + CORBA::ORB_var orb = CORBA::ORB_init (argc, argv); + + TestServer server (orb.in(), argc, argv); + server.run(); + + orb->destroy(); + return 0; + } + catch (CORBA::Exception& ex) + { + cerr << "CORBA error: " << ex << endl; + } + return 1; +} |