Hi, No, the DataSources are not required to be pooled. J2EE only requires that a container provide a DataSource binding. How that DataSource is implemented is up to the container (which usually defers to the server admin, as we do). You can use pooling or non-pooling DataSources, XA DataSources, and other varieties as you see fit.
Yoav Shapira http://www.yoavshapira.com >-----Original Message----- >From: Steve Kirk [mailto:[EMAIL PROTECTED] >Sent: Monday, November 08, 2004 7:45 PM >To: 'Tomcat Users List' >Subject: Are all TC-managed DataSources pooled? > > >The docs under 'JDBC Data Sources' at >http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.ht ml >say, "The J2EE Platform Specification requires J2EE Application Servers to >make available a DataSource implementation (that is, a connection pool for >JDBC connections)." > >Now, I'm *not* criticising the docs, I'm seeking clarification. I'm not >sure whether this is saying that a JDBC DataSource has to be pooled? Or is >instead saying that J2EE requires pooled JDBC connections, or maybe that >J2EE requires connections via a DataSource? > >I didn't think that DataSources had to be pooled, based on what is says >here: >http://java.sun.com/j2se/1.4.2/docs/api/javax/sql/DataSource.html > >This might sound like nit picking, but the answer to this will help me help >someone else on another thread. Thanks. > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
