Joined: Thu Aug 20, 2009 3:17 am Posts: 1
|
please guide me with different options to configure db session timeouts in hibernate. Please note: i am not using c3p0.
BTW can hibernate db session timeout be applied at java code ?
this is the content of my current hibernate configuration file: (how to mention db session timeout here?) <hibernate-configuration> <session-factory name="my_db_conn"> <property name="hibernate.connection.username">myuser1</property> <property name="hibernate.connection.password">mypassword1</property>
<property name="connection.pool_size">10</property> <property name="show_sql">false</property> <property name="default_schema">myschema1</property>
<property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property> <property name="hibernate.connection.url">jdbc:oracle:thin:@mymachine1:1521:mydbinstance1</property> <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property> <property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property> <mapping resource="mydbobject1.hbm.xml"/>
</session-factory> </hibernate-configuration>
thanks, bala
|
|