[omniORB] Ways of passing IOR Reference. NamingService ?
Rajesh Khan
rajeshkhan808 at gmail.com
Wed Dec 28 10:13:49 GMT 2011
Thanks Thomas for the great suggestion. Before diving into implementation
of java. I just tested my C++ Server and C++ Client using the naming
service on two different computers this time and unfortunately they do not
work.
Earlier I was testing the Server and the client on the same pc and they
were working. My earlier procedure was quiet simple , I would simply start
the naming service using *omniNames -start* and then run the server and the
client .The client would find the data registered by the server on the
naming service with no problem.Is there some other configuration details
that we have to deal with when the server and client are on different
computers on a network?? I think the client needs to know the ip address of
the server. Where would i insert that.. Any suggestions would be
appreciated.
On Wed, Dec 28, 2011 at 8:36 AM, Thomas Lockhart <lockhart at fourpalms.org>wrote:
> ...
>
> **Other than the above method I believe the most suitable method to use
> would be a naming service. Since it takes you away from managing and
> maintaining the IOR .
> In this regard I wanted to know if it would be possibe for the C++ server
> to binde objects to the naming service with ".id and .kind" names and the
> client can access those objects through a particular string passed to the
> *string_to_object* parameter ?? if so that would be best and how would
> that string look like and an idea on how the server would need to be
> configured..
> **
>
> You would use a CosNaming::Name parameter and a call to resolve() to find
> the object in the naming service. Then call to narrow() to convert it to
> the specific object type you expect. string_to_object() should not be
> involved when using the naming service.
>
> hth
>
> - Tom
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20111228/06093198/attachment.htm
More information about the omniORB-list
mailing list