[omniORB] Ways of passing IOR Reference. NamingService ?

Rajesh Khan rajeshkhan808 at gmail.com
Thu Dec 29 06:26:22 GMT 2011


Just got it working ..  had the wrong computer name  next to the service...
Thanks again for the help

On Thu, Dec 29, 2011 at 5:21 AM, Rajesh Khan <rajeshkhan808 at gmail.com>wrote:

> So after a little more experimentation and research I managed to remove
> the NO_RESOURCES error , it seems that environment variables requires a
> complete path along with the name of the cfg file to be included. Now
> getting back to the issue of running the server and the client to exchange
> data while running on two separate machines. Since initially i did not have
> .cfg on either the server or the client I decided to include one as I was
> recommended.Both the server and client contained this file
>
> omniORB.cfg
> NameService=corbaname::ComputerName
> InitRef = NameService=corbaname::ComputerName:2809/NameService
> (ComputerName is the name of the system running the respective application)
>
> However even after including the .cfg files it seems that the Client is
> unable to access the data at the system
>
>
>
>
>
> On Wed, Dec 28, 2011 at 11:04 PM, Rajesh Khan <rajeshkhan808 at gmail.com>wrote:
>
>> 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/20111229/524a2f0f/attachment.htm


More information about the omniORB-list mailing list