JNI interface and C++ server
837527Feb 7 2011 — edited Feb 8 2011Hi Friends,
My current product is a combination of a C++ application server and Java Web server. Product's web "User interface" is JAVA applet based which takes care of configuration management. C++ server and JAVA server communicate using JNI. I wanted to know that is this a good design? Should we separate the C++ server and JAVA server and make them to communicate using TCP/IP or any other IPC? Looking at the guidelines provided at "The Java™ Native
Interface Programmer’s Guide and Specification" it looks that JNI should be used to call lightweight native code. Much information passing from/to should be avoided.
Your comments will be greatly appreciated!
~ Vikram
Edited by: 834524 on Feb 7, 2011 6:56 AM