comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <p.obry@der.edf.fr>
Subject: Re: Ada Annex E (Just curious :-)
Date: 02 Mar 2001 10:38:39 +0100
Date: 2001-03-02T09:42:14+00:00	[thread overview]
Message-ID: <ud7c07bog.fsf@der.edf.fr> (raw)
In-Reply-To: yJSm6.8482$X_2.140961@news1.oke.nextra.no


"Frank" <franjoe@frisurf.no> writes:

> Hi!
> 
> I have read a bit in the Annex E.
> Could someone refer me to a example source code? Most preferably not an
> example larger than
> "send an integer from one partition to another that prints it on screen" or
> something like that :-)

Ok, what about an Hello World example ?

Client partition:

        with Message;
        with Ada.Text_IO;

        procedure Hello is
        begin
           Ada.Text_IO.Put_Line (Message.Hello_World);
        end Hello;

Server partition:


        package Message is

           pragma Remote_Call_Interface;

           function Hello_World return String;

        end Message;


        package body Message is

           function Hello_World return String is
           begin
              return "Hello World !";
           end Hello_World;

        end Message;

Configuration script:


        configuration Dist is

          pragma Starter (None);

          pragma Boot_Location ("tcp", "mycomputer:5557");

          Client : Partition;

          procedure Hello is in Client;

          Serveur : Partition := (Message);

        end Dist;

As you see the only "Annex E" specific feature here is the pragma
Remote_Call_Interface. The very same program can be built as a non distributed
application with:

        $ gnatmake hello

Of course this is only the visible part of the iceberg !!! The Annex E is
really powerfull. The mode above is a "distributed" one. But you can also
build client/server applications. The server is alive and does not stop after
the communicating with the client.

I've built some medium client/server applications with GLADE and must say that
I'm always amased by this technology. I'm not a netw<ork expert and found it
very nice that all the network trick (stub, skeleton, parameter passing...)
are done transparently. This way you can concentrate on your problem...

> otherwise the issue will boil out in business complexity of some kind:-))

I understand but as I said the Annex E is really big. For example I have done
a simple Chat program, it is a small program and very easy to understand.

> And also a link or example on how partitions are set up?

See above.

> 
> Would like to try it in Linux RedHat6.2 with gnat 3.13 (if feasible :-)

Of cource !

> As I already am writing a question here:-)
> I have also read abot ADEPT, but the info seems old, and only for Sun.
> Does any similar interface solution exist for Linux for Ada to Java?

Yes ADEPT is old. The right choice is GLADE.

Now I'm still wondering why no other Ada vendors have implemented this Annex ?
This is a real plus for Ada... Of course they will say that there is no market
for that... But sometime verdors should "push" the market, at least that easy
to say :)

Pascal.

-- 

--|------------------------------------------------------------
--| Pascal Obry                               Team-Ada Member |
--|                                                           |
--| EDF-DER-IPN-SID- T T I                                    |
--|                       Intranet: http://cln46gb            |
--| Bureau N-023            e-mail: p.obry@der.edf.fr         |
--| 1 Av G�n�ral de Gaulle  voice : +33-1-47.65.50.91         |
--| 92141 Clamart CEDEX     fax   : +33-1-47.65.50.07         |
--| FRANCE                                                    |
--|------------------------------------------------------------
--|
--|         http://perso.wanadoo.fr/pascal.obry
--|
--|   "The best way to travel is by means of imagination"



  parent reply	other threads:[~2001-03-02  9:38 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <yJSm6.8482$X_2.140961@news1.oke.nextra.no>
2001-02-28 13:28 ` Ada Annex E (Just curious :-) Marc A. Criley
2001-03-01 17:33   ` Frank
2001-03-02 17:42     ` Robert Spooner
     [not found]       ` <x7vu25bcl22.fsf@smaug.pushface.org>
2001-03-05 19:26         ` Robert Spooner
2001-03-02  9:38 ` Pascal Obry [this message]
2001-03-04 19:12   ` Dr Adrian Wrigley
2001-03-05 14:56     ` Ted Dennison
2001-03-05 16:24       ` Marin David Condic
2001-03-06  1:24         ` Dr Adrian Wrigley
2001-03-06 14:51           ` Ted Dennison
2001-03-06 15:23             ` Marin David Condic
2001-03-06 18:42               ` Kevin Rigotti
2001-03-06 20:56                 ` Marin David Condic
2001-03-06 22:47                   ` Robert A Duff
2001-03-07 14:43                     ` Marin David Condic
2001-03-07 18:02                       ` Randy Brukardt
2001-03-07 19:52                         ` Marin David Condic
2001-03-07 21:04                           ` Robert A Duff
2001-03-07 21:45                       ` Robert A Duff
2001-03-07  6:54             ` Jeffrey Carter
2001-03-07 21:39               ` Robert A Duff
2001-03-08  5:53                 ` Jeffrey Carter
2001-03-07 21:47             ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox