comp.lang.ada
 help / color / mirror / Atom feed
From: Tucker Taft <stt@averstar.com>
To: "Constantine A. Sismanidis" <constantine.a.sismanidis@boeing.com>
Subject: Re: ada < - > java bindings wanted
Date: 1999/08/12
Date: 1999-08-12T00:00:00+00:00	[thread overview]
Message-ID: <37B34038.966C7384@averstar.com> (raw)
In-Reply-To: FGD8I1.Joo@news.boeing.com

Constantine A. Sismanidis wrote:

>... > We need to be able to call java from an ada main routine (we plan to build
> the user interface in java), and to have java call the legacy ada code. We
> will be using Rational's ada compiler. We *can* get this to work by having
> ada call C which will then call java (using the Java Native Interface); or
> java calling C (using the Java Native Interface), which will then call ada.
> However, we would very much prefer to call java directly from ada, and ada
> from java, in order to avoid the extra layers of code that would be
> required.

I suggest you check with http://www.ainslie-software.com.  They have
a very nice tool called AdaJNI which I believe will give you
the ability to call Ada from Java, and perhaps vice-versa.

Note also that you can generally make Ada code "look" like C code
by applying a pragma Convention(C, xxx) to the Ada code, which 
should simplify interfacing.
> 
> Have others been faced with this sort of situation (ada calling java calling
> ada), and if so, how did you solve the problem?

The other choice is to recompile your entire Ada source into
Java byte codes.  However, that will definitely reduce performance
of the Ada code to some degree.  See http://www.appletmagic.com for
information on that.

> --
> Constantine A. Sismanidis                       Senior Software Engineer
> The Boeing Company                                         (703)219-3812
> 11242 Waples Mill Road, Suite 300                     Fax: (703)219-3813
> Fairfax, VA 22030-6075       e-Mail: constantine.a.sismanidis@boeing.com

-- 
-Tucker Taft   stt@averstar.com   http://www.averstar.com/~stt/
Technical Director, Distributed IT Solutions  (www.averstar.com/tools)
AverStar (formerly Intermetrics, Inc.)   Burlington, MA  USA




  reply	other threads:[~1999-08-12  0:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-12  0:00 ada < - > java bindings wanted Constantine A. Sismanidis
1999-08-12  0:00 ` Tucker Taft [this message]
1999-08-12  0:00   ` Tucker Taft
1999-08-12  0:00 ` Jim White
1999-08-12  0:00 ` David Botton
1999-08-14  0:00 ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1999-08-20  0:00 Geoff Bull
1999-08-20  0:00 ` Robert Dewar
1999-08-20  0:00   ` Ted Dennison
1999-08-20  0:00     ` Florian Weimer
1999-08-21  0:00     ` Robert Dewar
1999-08-21  0:00   ` Simon Wright
1999-08-22  0:00     ` Robert Dewar
1999-08-22  0:00   ` Geoff Bull
1999-08-21  0:00     ` Robert Dewar
1999-08-21  0:00     ` Robert Dewar
1999-08-12  0:00 Constantine A. Sismanidis
1999-08-12  0:00 ` Stanley R. Allen
1999-08-13  0:00 ` Ted Dennison
replies disabled

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