[omniORB] NameService: eg3_impl.cc

renny.koshy at rubixinfotech.com renny.koshy at rubixinfotech.com
Mon Nov 8 16:39:51 GMT 2004


Fix up your omniORB.cfg file so that the name service is defined properly 
in the initial context...  The section should look something like the 
following (of course your hostname/port may be different)

############################################################################
# InitRef
#
#   Specify the objects the ORB should return in response to calls to
#   resolve_initial_references.
#
#   There can be more than one configuration line defining InitRef.
#   Each line adds one initial reference to the ORB.
#
#   Here are some valid examples:
#
#   Specify the root context of the Naming Service. (Notice the end of 
line
#   continuation marker '\'
#
#   InitRef = 
NameService=IOR:010000002800000049444c3a6f6d672e6f72672f436f734\
#e616d696e672f4e616d696e67436f6e746578743a312e300001000000000000002c000000010\
#102000c0000003139322e3136382e312e3000f90a00000c000000349568c45cb1e6780000000\
#100000000
#
#   Alternatively, and more cleanly, specify the Naming service with a
#   corbaname URI:
#
InitRef = NameService=corbaname::ultra60
#InitRef = NameService=corbaname::10.10.17.27
#InitRef = NameService=corbaname::localhost
#
#
#   Specify the Trading service and the interface repository using 
corbaloc:
#
#   InitRef = TradingService=corbaloc:iiop:marrow:5009/MyObjectKey
#           = InterfaceRepository=corbaloc::1.2 at marrow:5009/Intf
#
#   The default for the set of initial references is empty.


Renny Koshy
President & CEO

--------------------------------------------
RUBIX Information Technologies, Inc.
www.rubixinfotech.com




unixwrld <unixwrld at yahoo.com.ar>
Sent by: omniorb-list-bounces at omniorb-support.com
11/08/2004 05:47 PM

 
        To:     omniorb-list at omniorb-support.com
        cc: 
        Subject:        [omniORB] NameService: eg3_impl.cc


Hello,
I'm using omniORB 4.0.5 for linux and I want to use omniName. I read the 
README.unix file and setting the enviroment. The omniName program start 
with no problems. Now, when I run eg3_impl sample, it returns System 
exception.
 
CosNaming::NamingContext_var rootContext;
CORBA::Object_var obj;
obj = orb->resolve_initial_references("NameService");
rootContext = CosNaming::NamingContext::_narrow(obj); // Here it send the 
system exception.
What happen?
Correo Yahoo! - 6 MB, tecnología antispam ¡gratis! 
Suscribite ya http://correo.yahoo.com.ar/_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20041108/8a6b286d/attachment.htm


More information about the omniORB-list mailing list