Sorry Duncan, but i don't understand what you say, i'm new in CORBA.<br>Could you give me an example, please ?<br><br>Thanks.<br><br><br><div class="gmail_quote">2010/11/24 Duncan Grisby <span dir="ltr"><<a href="mailto:duncan@grisby.org">duncan@grisby.org</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Wed, 2010-11-24 at 05:55 -0800, Valter Henrique wrote:<br>
<br>
> i'm tryng do build a simple application using 'echo' example.<br>
><br>
> I have my client in Java:<br>
<br>
</div>[...]<br>
<div class="im">> // locate the service<br>
> NameComponent nc = new NameComponent("Echo", "");<br>
> NameComponent path[] = { nc };<br>
> EchoRef = EchoHelper.narrow(ncRef.resolve(path));<br>
<br>
</div>[...]<br>
<div class="im">> java EchoClient -ORBInitialPort 2809<br>
> ERROR : org.omg.CosNaming.NamingContextPackage.NotFound:<br>
> IDL:<a href="http://omg.org/CosNaming/NamingContext/NotFound:1.0" target="_blank">omg.org/CosNaming/NamingContext/NotFound:1.0</a><br>
<br>
</div>As the exception says, the name you have looked up is not found. The eg3<br>
example uses the name test.my_context/Echo.Object . You need to either<br>
create the two NameComponents separately, or use the<br>
NamingContextExt::resolve_str method that will take the string form.<br>
<br>
Cheers,<br>
<br>
Duncan.<br>
<font color="#888888"><br>
--<br>
-- Duncan Grisby --<br>
-- <a href="mailto:duncan@grisby.org">duncan@grisby.org</a> --<br>
-- <a href="http://www.grisby.org" target="_blank">http://www.grisby.org</a> --<br>
<br>
<br>
</font></blockquote></div><br>