This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm loading my DLL, which starts a timer. Then the DLL writes every 5secs new data with an Callback-Funtion into my Java-class. This all works fine, when i use the stuff in an Application or an Applet. But when i try the same from a Servlet in Tomcat Environment, the timer starts but the first Callback seems to spawn a new Thread in Tomcat and a ClassNotFountException occurs. I thought, that because of the new Thread the Java-Env.-Poiter is wrong. I tried to solve this by saving a Pointer to the JavaVM but that wasn't the trick. Maybe it is possible to tell Tomcat not to spawn an new Thread when the Jni Call happens? Any other suggentions? Thanks Alex
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com