| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| hi, i build a client (computer A) under ommniORB 3.0 and i want to access to the naming service (ns runs on computer B) of an different orb (here ORBIX) | ns | ----------------|B| / |client| ---------|A| in the client : CORBA::Object_var obj = orb->string_to_object( "IOR: 000010000 ......." ); // i get the ior of the naming service case 1 CosNaming :: NamingContext_var inc = CosNaming::NamingContext::_narrow(obj); // it works but if i do : CORBA::Object_var obj = orb->string_to_object("corbaloc::ip_adresse_computerB: port_number/NamingSe rvice" ); if (!CORBA::is_nil()) { cout<< orb->object_to_string(obj) << endl; ///i get an IOR but different than the case : 1 // i cant do the _narrow } why it s different the syntax with corbaloc is not good ? thanks pascal roca SAGEM |
|
#2
| |||
| |||
| pascalroca@aol.com (Pascalroca) wrote in message news:<20031011154422.12553.00000084@mb-m23.aol.com>... >[Has trouble using a "corbaloc" URL to contact the Naming Service] > CORBA::Object_var obj = > orb->string_to_object("corbaloc::ip_adresse_computerB: port_number/NamingSe > rvice" ); The bit at the end of the corbaloc URL should be "NameService" instead of "NamingService". Regards, Ciaran. |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.