You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Matt Raible <ma...@raibledesigns.com> on 2002/12/05 08:28:13 UTC

struts-config.xml datasource vs. Tomcat's Connection Pool

I've heard that the data-source definitions in struts-config.xml use
Common's DBCP, just like Tomcat 4.1-5.0 uses for it's connection
pooling.  Is it then safe to say that implementing a data-source via
struts-config.xml will give you the same connection pooling architecture
as configuring it in Tomcat's server.xml? What is the difference between
the two?  I'm guessing that if you configure in struts-config.xml, you
have to access your connection in an action, and if you do it in Tomcat,
you can access it via JNDI.  Is that a fair analogy?

Thanks,

Matt