Hi, I have to connect to oracle 11g database server using spring and hibernate.The databse server is running with kerberos authontication protocol. Currently,we are connecting to database using com.mchange.v2.c3p0.ComboPooledDataSource and org.springframework.orm.hibernate3.LocalSessionFactoryBean. Configurations are following. <bean id="defaultDataSourceTarget" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> <property name="driverClass" value="${sg.database.default.driver}" /> <property name="jdbcUrl" value="${sg.database.default.url}" /> <property name="user" value="${sg.database.default.username}" /> <property name="password" value="${sg.database.default.password}" /> <property name="acquireIncrement" value="${hibernate.c3p0.acquire_increment}" /> <property name="maxPoolSize" value="${hibernate.c3p0.max_size}" /> <property name="minPoolSize" value="${hibernate.c3p0.min_size}" /> <property name="maxStatements" value="${hibernate.c3p0.max_statements}" /> <property name="idleConnectionTestPeriod" value="${hibernate.c3p0.idle_test_period}" /> <property name="checkoutTimeout" value="${hibernate.c3p0.timeout}" /> </bean> <bean id="defaultDataSource" class="com.p6spy.engine.spy.P6DataSource"> <constructor-arg ref="defaultDataSourceTarget" /> </bean> <bean id="defaultSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="dataSource" ref="defaultDataSource" /> <property name="hibernateProperties" ref="defaultHibernateProperties" /> <property name="mappingResources"> <list> <value> com/gl/ptd/mo/sg/common/service/dao/hibernate/mapping/MessageBean.hbm.xml </value> </list> </property> I had a look on a link http://docs.oracle.com/cd/B28359_01/java.111/b31224/clntsec.htm#autoId16 in Example 9-4 where we can connect to oracle db with kerberos.It sets some additional properties
I have no idea how to pass these properties during connection in my case. Can someone help me.
|