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,5e3fa264114b41e3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-20 22:08:12 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: kevin.brugh@lmco.com (Kevin Brugh) Newsgroups: comp.lang.ada Subject: Re: Setting up a Java Callback to Ada Date: 20 Jan 2002 22:08:12 -0800 Organization: http://groups.google.com/ Message-ID: <2870b407.0201202208.23b3374f@posting.google.com> References: <3C49BE2C.F114478D@earthlink.net> NNTP-Posting-Host: 12.86.35.131 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1011593292 31377 127.0.0.1 (21 Jan 2002 06:08:12 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 21 Jan 2002 06:08:12 GMT Xref: archiver1.google.com comp.lang.ada:19128 Date: 2002-01-21T06:08:12+00:00 List-Id: Yes, a JNI. I have Aonix 95 that uses JNI to interface with Java code. But, since Ada doesn't have Objects/Method like Java. Ada cannot handle Java interfaces, which Weblogic and many other Java Classes use a lot of. I figured if I could pass the access of the procedure to Java and it would save it, then when my method was invoked/notified I could use that call back procedure. It would be nice if Java could call a Ada procedure that would call my callback procedure directly. I have looked at using a C/C++ wrapper for Java, but I would like something more simpler and direct. "Marc A. Criley" wrote in message news:<3C49BE2C.F114478D@earthlink.net>... > Kevin Brugh wrote: > > > > I need to create some Ada code that will call Java code to set up a > > callback. I need the Java side to save the Callback procedure I sent > > it. When a event is triggered, specifically an OnMessage call from > > Weblogic. The OnMessage method in my java code will use that saved > > Callback Procedure and call my Ada procedure. Any suggestions?? > > Are you talking about invoking a native method written in Ada? > > Or can the Ada be compiled by JGNAT into JBC, which means it can be > treated pretty much like any other Java method? (See the JGNAT docs for > info on invoking Java from Ada and vice versa.) > > Marc A. Criley > Consultant > Quadrus Corporation > www.quadruscorp.com