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 <b>OMNIORB_CONFIG</b> and gave it the path to the omniORB.cfg. The content of the cfg file is<br>
<b><br>InitRef = NameService=XPA::192.168.56.102</b><br>(XPA is the name of the system running the server application and its ip add is next to it)<br><br>Now when I run the application i get the error<br>catch (CORBA::NO_RESOURCES&) <br>
{<br> cerr << "Caught NO_RESOURCES exception. You must configure omniORB "<br> << "with the location of the naming service." << endl;<br> std::cin.get();<br>
return 0;<br> }<br><br> during<br>obj = orb->resolve_initial_references("NameService");<br><br>Any suggestions what must be causing it ??<br><br><br><br><div class="gmail_quote">On Wed, Dec 28, 2011 at 4:56 PM, Brian Neal <span dir="ltr"><<a href="mailto:bgneal@gmail.com">bgneal@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2011/12/28 Rajesh Khan <<a href="mailto:rajeshkhan808@gmail.com">rajeshkhan808@gmail.com</a>>:<br>
<div class="im">> Thanks Thomas for the great suggestion. Before diving into implementation of<br>
> java. I just tested my C++ Server and C++ Client using the naming service on<br>
> two different computers this time and unfortunately they do not work.<br>
> Earlier I was testing the Server and the client on the same pc and they were<br>
> working. My earlier procedure was quiet simple , I would simply start the<br>
> naming service using omniNames -start and then run the server and the client<br>
> .The client would find the data registered by the server on the naming<br>
> service with no problem.Is there some other configuration details that we<br>
> have to deal with when the server and client are on different computers on a<br>
> network?? I think the client needs to know the ip address of the server.<br>
> Where would i insert that.. Any suggestions would be appreciated.<br>
<br>
</div>Did you configure the InitRef for the naming service in your<br>
omniORB.cfg file to point to the remote machine?<br>
</blockquote></div><br>