[omniORB] Client in Java (Jacorb) and Server in C++ (OmniOrb)

Duncan Grisby duncan at grisby.org
Wed Nov 24 17:28:58 GMT 2010


On Wed, 2010-11-24 at 05:55 -0800, Valter Henrique wrote:

> i'm tryng do build a simple application using 'echo' example.
> 
> I have my client in Java:

[...]
> 			// locate the service
> 			NameComponent nc = new NameComponent("Echo", "");
> 			NameComponent path[] = { nc };
> 			EchoRef = EchoHelper.narrow(ncRef.resolve(path));

[...]
> java EchoClient -ORBInitialPort 2809
> ERROR : org.omg.CosNaming.NamingContextPackage.NotFound:
> IDL:omg.org/CosNaming/NamingContext/NotFound:1.0

As the exception says, the name you have looked up is not found. The eg3
example uses the name test.my_context/Echo.Object . You need to either
create the two NameComponents separately, or use the
NamingContextExt::resolve_str method that will take the string form.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --





More information about the omniORB-list mailing list