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.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 613 times.

All times above are in ranch (not your local) time.
The current ranch time is
Feb 25, 2018 11:05:03.