-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: How to connect oracle database server running with keberos
PostPosted: Tue Feb 19, 2013 6:40 am 
Newbie

Joined: Tue Feb 19, 2013 6:30 am
Posts: 1
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.


Top
 Profile  
 
 Post subject: Re: How to connect oracle database server running with keberos
PostPosted: Wed Oct 16, 2013 3:11 am 
Newbie

Joined: Wed Oct 16, 2013 2:28 am
Posts: 2
has anybody got the solution for this ?

_________________
Thanks and Regards,
Umesh Pathak


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.