From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c42be44cf0cfc609 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-16 05:25:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!snewsf0.syd.ops.aspac.uu.net!ozemail.com.au!not-for-mail Message-ID: <3CE3A1A9.643FDB5E@flint-family.net> From: Shayne Flint Organization: Ainslie Software Pty Limited X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; I) X-Accept-Language: en,ja MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Calling Java Methods from Ada References: <3CE32C4D.85B5F484@acenet.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 1cust210.tnt3.cbr1.da.uu.net X-Trace: ozemail.com.au 1021551812 210.84.37.210 (Thu, 16 May 2002 22:23:32 EST) NNTP-Posting-Date: Thu, 16 May 2002 22:23:32 EST Distribution: world Date: Thu, 16 May 2002 22:10:17 +1000 Xref: archiver1.google.com comp.lang.ada:24180 Date: 2002-05-16T22:10:17+10:00 List-Id: This capability (in the form of AdaJNI) is part of ObjectAda from Aonix (http://www.aonix.com/content/products/objectada/windows.html). Conference papers at SigAda 98 and AdaEurope 2000 may also help. --Shayne Flint Geoff Bull wrote: > See http://www.acenet.com.au/~gbull/ > > The Alchemist (none@none.com) wrote: > > A group of us are trying to write a Java GUI to interface to some Ada > > APIs for a class project. We've spent several weeks trying to get this > > to work. We initially started with CORBA, but couldn't get Adabroker > > working easily. > > We then tried to go with JNI which lets us call Ada functions. However, > > we need to register callback functions to the pre-existing Ada APIs (to > > receive events coming from existing Ada infrastructure that will then > > call Java methods to update GUI components). Our callback functions > > would like to call Java code, but this doesn't seem possible with a JNI > > connection (JNI needs a reference to a JNIENV that it only gets when > > Java calls a JNI method). > > Is there any way to call Java methods from Ada? Similar to the JNI method > > for calling Ada from Java? Or do you think we will need to go with an > > intermediary technology like CORBA or SOAP? > > Your help would be greatly appreciated as we have spent many hours trying > > to figure this one out. Our project's success depends on it! > >