Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / ORB_portspan / server.cpp
blobdbb9f5aef9b714dbe3d97eabdad354bb8b797e4f
1 #include "simpleI.h"
3 int
4 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
6 try
8 CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
10 CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
12 PortableServer::POA_var poa = PortableServer::POA::_narrow(obj.in());
14 PortableServer::POAManager_var man = poa->the_POAManager();
16 man->activate();
18 simple_i simp;
20 PortableServer::ObjectId_var objId = poa->activate_object(&simp);
22 orb->run();
24 catch (const CORBA::Exception&)
26 ACE_DEBUG ((LM_DEBUG, "server failed to start\n"));
27 return 1;
30 return 0;