Re: ORBit broken for remote objects



sunny xu wrote:

> Hi ,
> I'm a beginner with CORBA and ORBit.And I want to use CORBA technology
> to deal with my various back end.
> I learn them from "ORBit Beginners Documentation". I don't know how to
> let the client to find the server object from a remote host.
> Could somebody help me in details?
> Regards
>                                                       Sunny xu
>
> -----------------------------------------------------------------------
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
> _______________________________________________ orbit-list mailing
> list orbit-list gnome org
> http://mail.gnome.org/mailman/listinfo/orbit-list

Hi Sunny.

I sent this to the list before so here it goes. I hope it helps:
(it is assumed you are not using the naming service for now)

BTW your subject sounds like ORBit is broken. But in fact it has been
very stable for quite a while now.


If it's ORBit to ORBit it's quite easy.

A) without the name server:

1) you will have to run your server and genrate the IOR
2) on the client machine it is always a good idea to recompile your
client
there, for this you will need the idl
3) put the IOR in an accesible place (a web server, or the client's
local
directory for example) by the client, but remember that every time you
start
the server it's a different IOR, so you have to update it every time.
For this
reason it is a good idea to have the server generate it on a web server,
but
for testing it is not necessary.
4) make sure that you have a file called orbitrc in your /etc directory
(on
both the server and the client) and it should contain the following
lines:
ORBIIOPUSock=1
ORBIIOPIPv4=1
notice that I omitted ORBIIOPIPv6 on purpose because it does not work in
my
case.
5) make sure that you edit your /etc/hosts file and that both computers
are
declared there. Also change the loopback (127.0.0.1) where it reads
localhost.localdomain to yourhostname. This will break Apache if you
have it
installed and you will have to reconfigure Apache later. Also make sure
that
your /etc/hosts file contains a reference to your ethX interface and it
has
the IP address of the preffered network interface (usually eth0). Yes,
you
will have two entries for the same hostname. I dunno if everyone has had
the
same experience but I have found that ORBit reads the hostname from the
lo
interface in the hosts file. If I'm wrong someone else might want to
expand on
this.

This is how I got it working.

Regards,
Alejandro









[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]