tags:

views:

24

answers:

2

I have some Pro*C code and some java method.

end user will invoke Pro*C/C binaries on linux/solaris/aix, it will make call to Java method post execution of java method, call should be back to C/Pro*c calling function

Any example/POC.

PS : there are many sample to call Java--->C but not much reverse.

No C++ please

A: 

How's this example

djna
djna, much helpful thanks.Any article where C global variable set to null/0, call java, java will set those global variable of C, control back to C.
raxit
A: 

Using JNA it's quite easy to pass in a callback to the Java-code: https://jna.dev.java.net/javadoc/com/sun/jna/Callback.htmlstrong text

mort