Re: getting ORBit examples to work across the network
- From: Frank Rehberger <Frank Rehberger web de>
- To: Guillermo Sanchez <guillersan gmail com>
- Cc: ORBit2 List <orbit-list gnome org>
- Subject: Re: getting ORBit examples to work across the network
- Date: Fri, 18 Dec 2009 03:22:53 +0100
Hi Guillerma,
I recommend usage of corbaloc to reference an initial persistent object
within server, that the client may access using the following
corbaloc-URI corbaloc::HOST:PORT/NameService
Please take a look at the orbit NameService implementation
src/services/name/boot.c associating a persistent key (eg "NameService")
with a newly created object "context":
CORBA_sequence_CORBA_octet okey;
okey._length = strlen(opt_corbaloc_key);
okey._buffer = opt_corbaloc_key;
ORBit_ORB_forw_bind(orb, &okey, context, &ev);
Moreover the server must bind to the same TCP-Port on every startup.
This can be achieved with configuration option:* *ORBIIOPIPSock=#port
Hope that helps,
Frank
Guillermo Sanchez wrote:
> Hello collisters:
>
> I'm bringing back this message from Feb 08, to ask a question about
> network using.
>
> I recently made the echo example work in a closed network by including
> ORBNetID=ipaddr in ~/.orbitrc. But I still have to copy the .ref file
> that includes the IOR. I was thinking: There have to be a way to do
> this automatically. Maybe using a nameservice or corbaloc or smething
> like that?
>
> Examples will be greatly apreciated.
>
> Thanks,
>
> Guillermo
> _______________________________________________
> orbit-list mailing list
> orbit-list gnome org
> http://mail.gnome.org/mailman/listinfo/orbit-list
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]