Hi friends
i want to use hibernate with apache DBCP connection management
i configure hibernate.cfg.xml
this is my hibernate.cfg.xml file
---------------------------------------------
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- Database connection settings -->
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="connection.url">
jdbc racle:thin:@172.23.162.200:1521:arti</property>
<property name="connection.username">aims</property>
<property name="connection.password">aims</property>
<!-- JDBC connection pool (use the built-in) -->
<property name="connection.provider_class">org.apache.tomcat.dbcp.dbcp.BasicDataSource</property>
<property name="Dbcp.minPoolSize">5</property>
<property name="Dbcp.timeout">500</property>
<property name="dialect">org.hibernate.dialect.OracleDialect</property>
<!-- Enable Hibernate's automatic session context management -->
<property name="hbm2ddl.auto">update</property>
<mapping resource="contact.hbm.xml"/>
</session-factory>
</hibernate-configuration>
------------------------------------------------------------
i added naming-factory-dbcp.jar to classpath
i am getting the following error
---------------------------------------------
Could not instantiate connection provider: org.apache.tomcat.dbcp.dbcp.BasicData
Source
please let me know how to solve this and where to configure if my approch wrong.
any help greatly cherished
Mallik