I assume you mean the servlet single thread model? I'd guess the only way to make that work is to implement the single thread interface. That interface exists only to tell the servlet container to use the single thread model. If you have tricker requirements than that, mosey up to the Servlet forum where the real servlet experts hang out and ask again.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
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