Performance and scalability: JNI advantages/disadvantages
Hello, I understand that there are some disadvantages to using JNI: - difficult to debug runtime error in native code. - potential security risk. - errors in JNI code take down the entire JVM and don't provide any mechanism for graceful recovery - heavy - all queries use string I am trying to understand these disadvantages better. Could someone elaborate on each of these points and point me to examples/references? Thanks MC
- Posted by: minh-chau nguyen
- Posted on: May 14 2007 23:58 EDT
Do not look for JNI disadvantages. Look for the issues that pops with bad coding in c or c++, what ever you will find more or less applicable to JNI as well.