[omniORB] clarify url resolution

William Bauder bill at simplified.biz
Thu Aug 16 17:14:26 BST 2007


Try corbaloc::

-Bill

-----Original Message-----
From: omniorb-list-bounces at omniorb-support.com
[mailto:omniorb-list-bounces at omniorb-support.com] On Behalf Of Jason
Stelzer
Sent: Thursday, August 16, 2007 3:49 PM
To: omniorb-list at omniorb-support.com
Subject: [omniORB] clarify url resolution


I'm working wth looking up/using remote objects. One of the first  
things I need to do is lookup the remote name service. After that I  
lookup remote objects to use.
I can lookup remote objects via IOR urls, but not corbaloc urls  
(which I would prefer as they're more readable).

CosNaming::NamingContext_var _nc;
CORBA::Object_var nsobj =   _orb->string_to_object(namingUrl);
_nc = CosNaming::NamingContext::_narrow(nsobj);

This works if namingUrl = "IOR:000......"
However if namingUrl  = "corbaloc:iiop:1.2 at hostname:3528/JBoss/Naming/ 
remote" I get an OBJECT_NOT_EXIST exception from corba.

Is my url incorrect? Is this only supported by certain corba  
versions? Should I be calling something different for a url formatted  
like the latter example? Using the IOR url will work, but its less  
than ideal from a human readable perspective.


--
J.



_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list




More information about the omniORB-list mailing list