Skip to Main Content
Java™ Performance and Scalability, Volume 1: Server-Side Programming Techniques
book

Java™ Performance and Scalability, Volume 1: Server-Side Programming Techniques

by Dov Bulka
June 2000
Intermediate to advanced content levelIntermediate to advanced
320 pages
5h 54m
English
Addison-Wesley Professional
Content preview from Java™ Performance and Scalability, Volume 1: Server-Side Programming Techniques

Chapter 8. JNI

You cannot dedicate a book to Java performance without addressing the issue of Java Native Interface (JNI.) After all, JNI is perceived by many to be the performance silver bullet when all else fails. Imagine working on a performance-challenged Java code, trying all the ideas set forth in earlier chapters and still falling short in achieving efficiency. You may be tempted, in desperation, to turn to JNI as a last resort. There are actually three popular scenarios for the use of native methods:

  • You may have a complex, pre-existing software written in C/C++ and the conversion of this code to Java is not a practical option for some reason. You can hook this software into your Java code via JNI. In this case, JNI bails you out of a costly ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Scalable and High-Performance Java™ Web Applications Using J2EE™ Technology

Building Scalable and High-Performance Java™ Web Applications Using J2EE™ Technology

Greg Barish

Publisher Resources

ISBN: 0201704293Purchase book