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=-0.4 required=5.0 tests=BAYES_00,FAKE_REPLY_C autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c42be44cf0cfc609,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-15 20:55:23 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!news0.optus.net.au!news.acenet.com.au Message-ID: <3CE32C4D.85B5F484@acenet.com.au> From: Geoff Bull X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Calling Java Methods from Ada Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Original-NNTP-Posting-Host: ace-modem56.acenet.com.au X-Original-Trace: 16 May 2002 13:55:21 +1000, ace-modem56.acenet.com.au Date: Thu, 16 May 2002 03:55:23 GMT NNTP-Posting-Host: 203.202.60.10 X-Trace: news0.optus.net.au 1021521323 203.202.60.10 (Thu, 16 May 2002 13:55:23 EST) NNTP-Posting-Date: Thu, 16 May 2002 13:55:23 EST Organization: Optus Customer - reports relating to abuse should be sent to abuse@optus.net.au Xref: archiver1.google.com comp.lang.ada:24155 Date: 2002-05-16T03:55:23+00:00 List-Id: 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! >