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

Valter Henrique valter.bcc at gmail.com
Wed Nov 24 21:46:50 GMT 2010


Sorry Duncan, but i don't understand what you say, i'm new in CORBA.
Could you give me an example, please ?

Thanks.


2010/11/24 Duncan Grisby <duncan at grisby.org>

> 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 --
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20101124/c1663e79/attachment.htm


More information about the omniORB-list mailing list