I'm using the JNDI Datasource setup fine with Tomcat 4.0.3 and Sybase.
In server.xml I have:
<Resource name="jdbc/db" auth="Container"
type="javax.sql.ConnectionPoolDataSource"/>
<ResourceParams name="jdbc/db">
<parameter> <name>driverClassName</name>
<value>com.sybase.jdbc2.jdbc.SybDriver</value> </parameter>
<parameter> <name>user</name> <value>user</value></parameter>
<!-- other driver specific db params... -->
<parameter> <name>initialPoolSize</name> <value>5</value></parameter>
</ResourceParams>
There's no need to specify a factory as Tomcat has a Datasource resource
factory built in.
Note that I've used the ConnectionPoolDataSource class - not sure if
this makes a difference.
HTH
Neil.
----- Original Message -----
from: Martin Jacobson <[EMAIL PROTECTED]>
date: Thursday, June 13, 2002 1:40 pm
subject: Re: Connection pooling doesn't work for me ... Help !!
> anthony.dodd wrote:
>
> > Hi
> >
> > I've posted a solution see "Generic DataSource Resource Factory
> > Available. JDBC Data Source" on the tomcat user maillist.
> >
> > Tony
> >
> Yes, but...
>
>
> Like many others on this list, I too have been unable to get the
> std
> JNDI DataSource thingy working; as an interim measure, I
> implemented a
> workaround (which does at least work!), but I refuse to be defeated!
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>