wood burning stoves 2.0*
The moose likes Java in General and the fly likes Native events Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Native events" Watch "Native events" New topic
Author

Native events

Guy Fawkes
Greenhorn

Joined: Mar 11, 2003
Posts: 1
Hi,
I am trying to implement an embedded Java program that interacts and gets async events from native code. I need multiple Java threads, so my understanding is that I should not block inside a native function.
I understand I can get the events by polling from a Java thread, but that is too inefficient for the application I am working on.
Question then is, could anyone suggest a good way to get the async events from the native 'C' code into the Java KVM ? If possible, pointing me to sample 'C' and Java code that does it would be fantastic.
TIA.
Guy.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Native events
 
Similar Threads
problem converting unicode characters from native to Java
call method from JAVA (jni)
Specifying which ClassLoader gets used by FindClass()
native methods
View Of Native Functions of JAVA