Discussion:
[omniORB] Binding to Other Naming Services
Venkata Madhusudhana Rao
2006-07-05 19:59:02 UTC
Permalink
Hi All,

I am working on omniORB 4.0.7 for my corba services. I have specific query regarding how to Bind the omniORB naming service to other naming service?
The requirement is that, I have my EJB's deployed in oc4j, and EJBs binded with oc4j's naming directory. I have a corba client (Bcos I have my client in c++) which I need to lookup the EJB's deployed in OC4J.

I have tried by modifying the the .cfg file entry like below

InitRef = NameService=corbaname:iiop:host-name
= jndiNameService=corbaloc:iiop:host-name:ormi-port/crisWeb

I have added the second line (= jndiNameService=corbaloc:iiop:host-name:ormi-port/crisWeb), where the crisWeb is my EJB's application name.

Still it is not working.

Am I missing some of other configurations?. Or am I doing wrong configuration?

Any help on this highly appreciated

Thanks
Venkata Madhu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20060705/221a4df8/attachment.htm
Piet van Oostrum
2006-07-06 15:36:24 UTC
Permalink
VM> Hi All,
VM> I am working on omniORB 4.0.7 for my corba services. I have specific
VM> query regarding how to Bind the omniORB naming service to other naming
VM> service?
VM> The requirement is that, I have my EJB's deployed in oc4j, and EJBs
VM> binded with oc4j's naming directory. I have a corba client (Bcos I
VM> have my client in c++) which I need to lookup the EJB's deployed in
VM> OC4J.
VM> I have tried by modifying the the .cfg file entry like below
VM> InitRef = NameService=corbaname:iiop:host-name
VM> = jndiNameService=corbaloc:iiop:host-name:ormi-port/crisWeb
VM> I have added the second line (=
VM> jndiNameService=corbaloc:iiop:host-name:ormi-port/crisWeb), where the
VM> crisWeb is my EJB's application name.
I don't know oc4j, but your C++ client shouldn't have anything to do with
JNDI, which is a Java API to the naming service, amongst others.
Your nameservice should be:

InitRef NameService=corbaname:iiop:host-name:port-number
InitRef NameService=corbaloc:iiop:host-name:port-number/NameService

Does your oc4j Nameservice use a non-standard port number?
--
Piet van Oostrum <***@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: ***@vanoostrum.org
Loading...