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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to