On SAP PI server, I have a web application with Java Native methods. The library errors when application is restarted/undeployed and application accessed:-
Unable to load library due to:...... Native Library already loaded in another classloader
Q1 Is there a location where I can load shared(or native) library on SAP PI so that my application when restarted can find load it from there.
If Q1 is not answered,
Q2 In web application that uses native library
I am creating Custom classloader(Unload Java JNI DLL - CodeThesis.com) and setting classes to null before running System.gc() as suggested in example. However when the web application is undeployed and the entire classes and path of Java class gets removed so wanted to know that the path of the class will error as it gets deleted on undeploy.
so this line is meaning less on undeploy:-
Class ca = cl.findClass("com.codethesis.example.A");