Hi,
I use this Resource:
<Resource name="RESOURCE_NAME"
auth="Container"
type="oracle.jdbc.pool.OracleDataSource"
factory="oracle.jdbc.pool.OracleDataSourceFactory"
user="ORACLEUSER"
password="ORACLEPASS"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@192.168.100.99:1521:orcl"
maxActive="20" maxIdle="10" maxwait="-1"/>
There is OracleDataSourceFactory in ojdbc14.jar.
Regards,
Zdenek
On 5/30/07, Sorin Juco <jucosorin@gmail.com> wrote:
>
> Hello,
>
> I want to create a JDBC resource wich represents a connection pool to an
> Oracle server. By default Tomcat uses DBCP to provide the connection pool
> implementation. My problem is that I want to execute some custom code each
> time I get a connection from the pool and also each time I release the
> connection back to the pool.
> Does this mean that I have to implement my own conn-pool factory? Or can I
> do this using DBCP. I couldn't find an answer anywhere. Can someone point me
> to a tutorial!
>
> Thanx.
> --
> View this message in context: http://www.nabble.com/JDBC-resource-with-custom-connection-pool-factory-tf3838781.html#a10869019
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
|