I have an timer process which reads through lotus notes 5 and dumps the read document in modeshape repository. The process writes the timestamp and other relevant information into a DB table and uses this to pick up where it was stopped and then read the rest of the docs.
The problem comes when the app is undeployed and redeployed again. When I do that, While a session is created with Lotus notes, it throws me an exception :
ava.lang.UnsatisfiedLinkError: Native Library C:\Domino\nlsxbe.dll already loaded in another classloader
that's obvious because redeployment didn't remove the dependent dlls and Jars from JVM. I need a solution where in I can remove the dependents from JVM or reference the same dlls and resources while trying to create session the next time.
Note - I don't have the code where the LOTUS notes api's try to load the dependents and I don't even know the dependent APIs and DLLs which are needed to create the connection so I moved the whole installation folder of lotus notes domino client to my java.library.path
Please help, This is just driving me nuts. Probably a very simple issue but I need someexpert advice how to accomplish this in a better way.