On Wed, 5 Dec 2001, Amine AMAR wrote:

> Date: Wed, 5 Dec 2001 12:02:49 -0000
> From: Amine AMAR <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat mailing list <[EMAIL PROTECTED]>
> Subject: configuring a DB connection pooling for Oracle on Tomcat4
>
> Hi,
>
> I need to use a database connection pooling for Oracle 817 with tomcat
> 4. I made all the configuration described in the documentation, but it
> still does not work.
>
> I went thru the docs again and understood that tomcat 4 can use only
> tyrex DBs thru default configuration, and that i need to write my own
> factory to have a JDBC connection pool with tomcat 4.
>
> I have two questions:
> - did I understand correctly the docs?
> - if it's the case, Can any one point me to how to do it
>   (I have already read the example and explanations in tomcat docs).?
>

Tyrex is the *default* connection factory, which you can use on top of any
JDBC driver (including the one from Oracle).  It does not include a JDBC
driver of its own, but you declare the name of the driver you want to use
via a "factory" parameter nested inside your <ResourceParams> element to
name the factory class.

You can use a different connection factory by writing an object creation
factory (like the ones already present in Tomcat's
org.apache.naming.factory package) for the new one.  The JNDI
documentation (http://java.sun.com/products/jndi) talks about this -- see
the specification for the Service Provider Interface.

There is a small example of adding your own custom resource factory at the
bottom of the "jndi-resources-howto.html" page in the Tomcat 4 docs.

> thank's
>
> Amine
>
Craig



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to