corba: unable to connect to server -


i trying connect server unable so. below code snippet, server running on 3.204.24.98:6090.

char* ior = "corbaloc:iiop:3.204.24.98:6090";  cout<<"controllers ior : "<<ior;  //corba::object_var obj = orb -> string_to_object(ior); hello_var hello = hello::_narrow(orb->string_to_object(ior)); 

is there missing here. suggestions of great help.

thanks

you miss object key tells orb object in server want reach. check iortable support, server can make object available using simple name client can use. c++11 in server code

  std::string ior = orb->object_to_string (server_reference);   auto ior_table_obj = orb->resolve_initial_references("iortable");   auto tmp = idl::traits<iortable::table>::narrow (ior_table_obj);   ior_table->bind("hello", ior); 

the client can use

  auto tmp = orb->string_to_object("corbaloc:iiop:3.204.24.98:6090/hello");   auto hello = idl::traits<test::hello>::narrow (tmp); 

Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -