im new to CORBA, so this may seem a very stupid question but its getting on my nerves..
1] i want to write a client application in c++ for a server application
2] im using ACE TAO
3] i know the ip address and also know the port no. of the naming service and also the registered name of the object in the naming service (the name which would be put in place of "SomeName" below)
so my question is how and where does my client application specify this IP address and naming service port???
ive done something similar to the following code.
i understand that we have to follow the following steps:
// First initialize the ORB, that will remove some arguments...
CORBA::ORB_var orb =
CORBA::ORB_init (argc, argv);
CORBA::Object_var naming_context_object =
CosNaming::NamingContext_var naming_context =
CosNaming::NamingContext::_narrow (naming_context_object.in ());
CosNaming::Name name (1);
name.id = CORBA::string_dup ("SomeName");
CORBA::Object_var factory_object =
// Now downcast the object reference to the appropriate type
ModuleName::InterfaceName_var factory =
ModuleName::InterfaceName::_narrow (factory_object.in ());
really very urgent
thank u so much
Edited by sidrocks, 06 July 2006 - 11:03 AM.