We have a web application running on Tomcat 7 and it loads the JNI library module, which was coded in C ++ and which was developed by a third party. Basically, this library provides biometric technology for our web application. We cannot use the entire java solution for this and have no choice but to use this JNI library module.
The problem is that sometimes the JNI library module fails because it executes a segmentation error and corrupts memory. When this happens, Tomcat completely crashes without warning.
Is there a way to prevent tomcat from crashing when a loaded JNI library module crashes? Ideally, when the JNI library module crashes, we would like to receive a notification and be able to reload the web application / module. Is it possible?
Thanks for the help.
source
share