I know that Java code can call C++ code through JNI. Is it possible, however, to call Java code from C++ again through JNI or with any other method?
You can also use SWIG to automatically generate the JNI files. The setup can be a bit tricky but it's very useful when you have a lot of C++ code to expose
http://www.swig.org/index.php