You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chris Mein <ch...@advancedwave.com> on 2001/12/14 16:55:25 UTC
Question about the javax.sql.DataSource Tomcat implementation
I would just like confirmation of the following please:
>From reading the JNDI Resource HOW-TO file it sounds like Tomcat 4.0
provides a J2EE 1.3 like pooled connection service if the given
configuration is followed.
I also read a message from Craig McClanahan which said:
"For the JDBC data source resource, the returned object is an instance
of javax.sql.DataSource -- i.e. a connection factory that you then call
to ask for a database connection. The connection pool itself is
provided by Tomcat."
My query is whether the connections that I request say by doing the
following:
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
DataSource ds = (DataSource)envCtx.lookup("jdbc/geldev");
Connection conn = ds.getConnection();
Will come from a pre-created pool avoid creation overheads? If this is
in fact what happens where do I configure how many connections I want?
There seems to be no such configuration information in the server.conf
file.
Thanks
Chris Mein
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>