HI ROOKIE,

I probably didn't understand the question properly.

I have configured datasource with OracleDatasourceFactory and I have
expected that
DataSource.getConnection return OracleConnection and when I close this
connection it will return this connection to the pool instead of close
this connection.

Is this right?

Thanks.

Regards,
Zdenek

On 5/30/07, ROOKIE <[EMAIL PROTECTED]> wrote:
To execute custom code while getting a connection u can extend the connection 
factory and mention that class as the factory for ur resource, I dont think we 
close connections using the factory, so maybe u can write a wrapper around 
Connection.close() method.

----- Original Message ----
From: Sorin Juco <[EMAIL PROTECTED]>
To: users@tomcat.apache.org
Sent: Wednesday, May 30, 2007 1:11:18 PM
Subject: JDBC resource with custom connection pool factory


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]







____________________________________________________________________________________Building
 a website is a piece of cake. Yahoo! Small Business gives you all the tools to 
get online.
http://smallbusiness.yahoo.com/webhosting

---------------------------------------------------------------------
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