I N S interoperable naming service

This is a discussion on I N S interoperable naming service within the Object forums in Theory and Concepts category; 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 // ...

Go Back   Application Development Forum > Theory and Concepts > Object

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-11-2003, 03:44 PM
Pascalroca
Guest
 
Default I N S interoperable naming service


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



Reply With Quote
  #2  
Old 10-12-2003, 12:09 PM
Ciaran McHale
Guest
 
Default Re: I N S interoperable naming service

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.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:13 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.