#80 Cann´t use c3p0 with jndi in websphere

open
nobody
None
5
2010-03-16
2010-03-16
Anonymous
No

I have tried for days to create a jndi datasource from websphere, but when I use ComboPooledDataSource it throws an exception: DataSource class cannot be used as one-phase: ClassCastException: com.mchange.v2.c3p0.ComboPooledDataSource incompatible with javax.sql.ConnectionPoolDataSource, because it doesn´t implements javax.sql.ConnectionPoolDataSource. So, I tried to use WrapperConnectionPoolDataSource, but it doesn´t take the properties seted before. How can I use jndi c3p0 in websphere.

Discussion