From: kevin.brugh@lmco.com (Kevin Brugh)
Subject: Re: Setting up a Java Callback to Ada
Date: 20 Jan 2002 22:08:12 -0800
Date: 2002-01-21T06:08:12+00:00 [thread overview]
Message-ID: <2870b407.0201202208.23b3374f@posting.google.com> (raw)
In-Reply-To: 3C49BE2C.F114478D@earthlink.net
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" <mcqada95@earthlink.net> 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
next prev parent reply other threads:[~2002-01-21 6:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-18 18:11 Setting up a Java Callback to Ada Kevin Brugh
2002-01-19 19:38 ` Marc A. Criley
2002-01-21 6:08 ` Kevin Brugh [this message]
2002-01-21 6:49 ` Jim Rogers
2002-01-21 9:54 ` Hyman Rosen
2002-01-21 22:40 ` David Kirk
2002-01-21 12:50 ` Marc A. Criley
2002-01-22 18:35 ` Stephen Leake
2002-01-23 21:04 ` richtmp
2002-01-25 12:53 ` Marc A. Criley
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox