I have a class that takes a bit of time to start up (makes some JNI calls and what not), so it is not feasable to initialize this class everytime a page loads. Is it possibl
You can do the initialize of the class inside the servlet's init method. init() method is invoked when the servlet instance is loaded so it is a good place for expensive operations.