I wanted to understand how can I verify that I have
prepared statement pooling turned on when using DBCP.

I am using JOCL files for configuring the connection
pool. I have added the necessary XML snippet for
enabling the Prepared Statement pooling ie define a
StackKeyedObjectPoolFactory.

Now when I can I get a PreparedStatement using the
connection obtained from the pool and check its class
using 
pstmt.getClass().getName()

I get
org.apache.commons.dbcp.DelegatingPreparedStatement
but I was expecting

org.apache.commons.dbcp.PoolablePreparedStatement

Appreciate any help.

-Rahul


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to