This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Simple request, but I'm sure the solution isn't so simple. I have a class that handles connections to another application that I am using. I call the app from my web application for every request that comes through. Now I wanted to create an object pool for this class so I dont have to create and destroy connections on every request, thus improving performance. Although I know how to use connection pooling with database connections I dont know how to create a generic object pool with tomcat. I am currently working through a generic object pool design pattern example. My question is, how do I configure tomcat to use a pool of any object type? Are there any examples of using generic object pools with tomcat on the net?