Use C3P0 in Tomcat

You can easily configure Apache's Tomcat web application server to use c3p0 pooled DataSources. It's a fragment of Tomcat's conf/server.xml file, which should be modified to suit and placed inside a <Context> element.