Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JNI and CallBack function within dll

843829Sep 1 2009 — edited Sep 1 2009
I'm using JNI and a callback function can be coded in JNI. However, the function i'm calling via JNI has a callback function via the dll.

Do you know how to handle this callback function via JNI. I dont want to use JNA instead I would prefer JNI.

Oneway to do this would be call jni->native dll->native dll calls callback->jni callbacks java. One problem how would i code in jni the callback fucntion and attached a thread. Is this technically possible.

Any sample code or example would help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 29 2009
Added on Sep 1 2009
4 comments
556 views