Forums Register Login
Connection Pooling Tomact vs. Java based
I have heard that it is better to do your connection pooling on the server vs in the code is that true? If so how will it benefit me doing on Tomcat. We currently run Tomcat 5.5 and we have a Sybase database here at my company. Any tips that you have would be welcomed. . .. Help plz!!!
Welcome to JavaRanch!

You are correct that a connection pool managed by the server will be better. The server is able to better manage resources than the code. This is more true for the bigger app servers like WebSphere that use a DataSource for EJBs.

Tomcat uses a a free library from Jakarta Commons for the connection pooling. This is likely better optimized than one you would write yourself.

This thread has been viewed 750 times.

All times above are in ranch (not your local) time.
The current ranch time is
Dec 14, 2018 09:33:29.