I am writing new java code and would like to use JNI to talk with my legacy C/C++ code. I am wondering if someone could recommend a good book on strategies and techniques on the best way to go about using legacy code via JNI. By the end of the project, the legacy code will be about 80% of the code and the java about 20%.
Also, I have read that TCP/IP may be useful in some situations. And I have found in other places that there may be some tools that will auto generate most of the JNI code. Is there a good book that will help me figure all that out.
In summary - I am looking for some resources to figure out how I want to go about having java code (which will be new functions) call legacy C/C++ code.