RE: Difference between ORBIT and Shared Library ?



Can you specify this part: "You can implement the server inside a shared
library"

Can you point me to some examples. I have the feeling that the
interface Echo {
        void echoString(in string astring);
};
must always be implemented as a standalone process, which is started by the
name service. I never saw an example where the server is compiled as a
library.

Cheers

Franck Martin
Network and Database Development Officer
SOPAC South Pacific Applied Geoscience Commission
Fiji
E-mail: franck sopac org <mailto:franck sopac org> 
Web site: http://www.sopac.org/
<http://www.sopac.org/> Support FMaps: http://fmaps.sourceforge.net/
<http://fmaps.sourceforge.net/> 

This e-mail is intended for its addresses only. Do not forward this e-mail
without approval. The views expressed in this e-mail may not be necessarily
the views of SOPAC.



-----Original Message-----
From: Dietmar Maurer [mailto:dietmar ximian com]
Sent: Friday, 23 March 2001 2:55 
To: Franck Martin
Cc: gnome-devel-list gnome org
Subject: Re: Difference between ORBIT and Shared Library ?


Franck Martin wrote:

> Dietmar Maurer wrote:
>
> > Franck Martin wrote:
> >
> > > Difference between ORBIT and Shared Library ?
> > >
> > > I'm trying to understand the difference between ORBIT and a shared
library.
> > > What are the advantages/disavantage of using CORBA against a shared
library
> > > and its .h file for linking?
> > >
> > > I'm getting a bit confused on the issue.
> >
> > CORBA is a framework to make Client/Server applications. Here are some
links
> > with
> > further information:
> >
> > http://cgi.omg.org/corba/beginners.html
> > http://www.omg.org/gettingstarted/
> > http://orbit-resource.sourceforge.net/
> >
> > - Dietmar
>
> Ok, I have read some of the doc, the closest I found was a doc about gda
which
> was a library wrapped around corba.
>
> I thought that corba was allowing to build objects that can be called
inside
> procedures... Is it possible to write a library that will be called
through an
> orbit object service?

You can call methods of CORBA Objets (Servers) from everywhere. Consider you
have implemented an 'Echo' server:

interface Echo {
        void echoString(in string astring);
};

all you need is to get a object reference to that server. Then you can call

 Echo_echoString(echo_client, "test", ev);

That's all, no matter where the object (server implementation) is located.
You
can implement the server inside a shared library, it can be a separate
process
on the same computer, or it can be located somewhere in the world
(accessible
through the internet (TCP/IP)- or other network protocols). I think the
call that 'location transparent'.

I hope this answers the question?

- Dietmar




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