Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / Interoperable_Naming / client.cpp
blob4cb54504f8b8b841138a4a71c4bdf0f4fec6ffe5
2 //=============================================================================
3 /**
4 * @file client.cpp
6 * This implements a simple CORBA client for the
7 * CosNaming::NamingContextExt example
9 * @author Priyanka Gontla <pgontla@ece.uci.edu>
11 //=============================================================================
14 #include "ncontextext_client_i.h"
16 int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
18 int result = 0;
20 try
23 NContextExt_Client_i client;
25 if (client.init (argc, argv) != 0)
26 return 1;
28 result = client.run ();
30 catch (const CORBA::Exception& ex)
32 ex._tao_print_exception ("client");
33 return 1;
36 return result;