Support of more than one connection to the same DB
Status: Beta
Brought to you by:
swaldman
Hey,
I'm having a problem using C3P0 when accessing to the DB using both Hibernate and "regular" jdbc.
Both connections have different drivers and connection URLS.
However, since Hibernate sets the C3P0 settings, it is using its driver and connection URL, which result in error.
This happens both in WebLogic and WebSphere.
in JBoss I managed to workaround that problem when setting the C3P0 driver and jdbcURL params to be cleared ("").
in WebLogic I get the following text:
C3P0 using driver: oracle.jdbc.driver.OracleDriver at URL jdbc:oracle:thin:@server:port:sid
showing C3P0 settings are set with a specific driver.
Is there a way to workaround this?
Thanks