[Logo]
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!!!
Bobby,
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



All times above are in ranch (not your local) time.
The current ranch time is
Dec 14, 2017 01:31:48.