-->
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.  [ 1 post ] 
Author Message
 Post subject: Configuring session timeout in Hibernate
PostPosted: Thu Aug 20, 2009 3:36 am 
Newbie

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


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

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.