Re: getting ORBit examples to work across the network

View: New views
2 Messages — Rating Filter:   Alert me  

Re: getting ORBit examples to work across the network

by Guillermo Sanchez-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
http://mail.gnome.org/mailman/listinfo/orbit-list

Re: getting ORBit examples to work across the network

by Frank Rehberger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
> http://mail.gnome.org/mailman/listinfo/orbit-list
>  

_______________________________________________
orbit-list mailing list
orbit-list@...
http://mail.gnome.org/mailman/listinfo/orbit-list