S
Sune
Hi all,
I'm not a Java programmer so please be gentle:
Prereq:
---------------
- The lookup service (see below) implemented by a C module cannot be
re-written in Java ;-)
- The lookup service is to be loaded into the process of the Java
application, i.e. I want to avoid expensive IPC
1)
I got a C module that organizes a big block of memory into a fairly
nice lookup service. This C module exposes a C API that I guess I
would best access from a Java application by using JNI, right? Are
there any other choices than JNI?
2)
by the C module. Is this correct? Does JNI in any way make this less
true? For example, are there mechanisms in JNI that uses physical
pointers for efficiency?
In C/C++, a rouge pointer can very easily damage the lookup service
and this would not be noticed until several days have passed. This is
not acceptable.
Thank you for your time
/Sune
I'm not a Java programmer so please be gentle:
Prereq:
---------------
- The lookup service (see below) implemented by a C module cannot be
re-written in Java ;-)
- The lookup service is to be loaded into the process of the Java
application, i.e. I want to avoid expensive IPC
1)
I got a C module that organizes a big block of memory into a fairly
nice lookup service. This C module exposes a C API that I guess I
would best access from a Java application by using JNI, right? Are
there any other choices than JNI?
2)
code cannot by any means, by mistake, access the memory block managedFrom my understanding, Java being a pointerless language, Java client
by the C module. Is this correct? Does JNI in any way make this less
true? For example, are there mechanisms in JNI that uses physical
pointers for efficiency?
In C/C++, a rouge pointer can very easily damage the lookup service
and this would not be noticed until several days have passed. This is
not acceptable.
Thank you for your time
/Sune