[omniORB] Ways of passing IOR Reference. NamingService ?

Rajesh Khan rajeshkhan808 at gmail.com
Wed Dec 28 23:04:06 GMT 2011


Hi brian , no none of my applications - server or the client had the
omniORB.cfg so i decided to make one .Starting with the server I inserted
the environment variable *OMNIORB_CONFIG* and gave it  the path to the
omniORB.cfg. The content of the cfg file is
*
InitRef = NameService=XPA::192.168.56.102*
(XPA is the name of the system running the server application and its ip
add is next to it)

Now when I run the application i get the error
catch (CORBA::NO_RESOURCES&)
 {
        cerr << "Caught NO_RESOURCES exception. You must configure omniORB "
            << "with the location of the naming service." << endl;
        std::cin.get();
        return 0;
 }

 during
obj = orb->resolve_initial_references("NameService");

Any suggestions what must be causing it ??



On Wed, Dec 28, 2011 at 4:56 PM, Brian Neal <bgneal at gmail.com> wrote:

> 2011/12/28 Rajesh Khan <rajeshkhan808 at gmail.com>:
> > 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.
>
> Did you configure the InitRef for the naming service in your
> omniORB.cfg file to point to the remote machine?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20111228/82d64687/attachment.htm


More information about the omniORB-list mailing list