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,75dc140d36278665,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-01 18:32:18 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!cyclone.tampabay.rr.com!news-post.tampabay.rr.com!typhoon.tampabay.rr.com.POSTED!not-for-mail Message-ID: <3C8039A6.6050707@none.com> From: The Alchemist User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Calling Java Methods from Ada Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 02 Mar 2002 02:33:08 GMT NNTP-Posting-Host: 67.8.2.80 X-Complaints-To: abuse@rr.com X-Trace: typhoon.tampabay.rr.com 1015036388 67.8.2.80 (Fri, 01 Mar 2002 21:33:08 EST) NNTP-Posting-Date: Fri, 01 Mar 2002 21:33:08 EST Organization: RoadRunner - Central Florida Xref: archiver1.google.com comp.lang.ada:20681 Date: 2002-03-02T02:33:08+00:00 List-Id: Hello, 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! Thank You please reply by post and if possible email also to junkymail50@delete.yahoo.com (delete the word delete)