-->
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.  [ 3 posts ] 
Author Message
 Post subject: Connection pooling in hibernate
PostPosted: Fri Oct 07, 2005 4:25 am 
Newbie

Joined: Fri Oct 07, 2005 4:07 am
Posts: 2
Location: India
hi
i'm using hibernate3 for my web application.i'm using c3po for connection pooling.My problem is i have to refresh many times to get the start page when i uploaded the site to the internet domain.I think it may be some problem with connection pooling .My hibernate.cfg.xml looks like this

<?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>
<!-- local connection properties -->
<property name="hibernate.connection.url">
jdbc:mysql://192.168.0.10/TestDatabase
</property>
<property name="hibernate.connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password"></property>
<property name="dialect"> org.hibernate.dialect.MySQLDialect</property>

<property name="c3p0.acquire_increment">1</property>
<property name="c3p0.idle_test_period">100</property> <!-- seconds -->
<property name="c3p0.max_size">100</property>
<property name="c3p0.max_statements">0</property>
<property name="c3p0.min_size">10</property>
<property name="c3p0.timeout">100</property>

<property name="hibernate.show_sql">true</property>
<property name="hibernate.transaction.factory_class">
org.hibernate.transaction.JDBCTransactionFactory
</property>
</session-factory>
</hibernate-configuration>

if anyone have any idea about this please help me.Its an urgent requirement.

thanks
nishom


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 09, 2005 9:02 am 
Beginner
Beginner

Joined: Sat Oct 08, 2005 2:13 am
Posts: 47
Hi
maybe there is a query selected from database when ur application starts for example for matching username and or passwords.


Top
 Profile  
 
 Post subject: thanks
PostPosted: Mon Oct 10, 2005 5:45 am 
Newbie

Joined: Fri Oct 07, 2005 4:07 am
Posts: 2
Location: India
thanks for ur reply ...but i think thats not the reason.....i'll be happy if i get more clarification

thanks
nishom


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.