Discussions

Performance and scalability: JNI advantages/disadvantages

  1. JNI advantages/disadvantages (1 messages)

    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
  2. 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.