Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disadvantages of JNI

 
Shankar Ranganathan
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When JNI can't be used? Can you give me an example
Shankar
 
Claudio Malso
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my point of view, of you use JNI:
- You can’t say write once run anywhere.
- Difficult to debug runtime error in native code.
- Security risk.
 
Shankar Ranganathan
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Roger,
Thanks for your time.
In the implementation of JNI does the existing system to be IN-PROCESS. I took this from
serverside.com.Can someone explain this scenario.
Exact Info from serverside:
The Java Native Interface (JNI). JNI enables you to bridge into native code, such as C++ code. The advantage of the JNI is that it's faster than the other approaches. The disadvantages are that it can't connect to any system (just native code), the existing system needs to run in-process, and JNI is platform-specific--so if your code needs to run on multiple platforms you.re multiplying the testing and maintenance effort.
 
Rama Raghavan
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simply put - if your C++ code dumps core, your JVM will crash.
Rama
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic