-->
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: C3P0 Pool
PostPosted: Tue May 17, 2005 5:35 am 
Newbie

Joined: Mon May 02, 2005 4:16 am
Posts: 2
Hello All,

I want to use c3p0 pool with Hiber8. Is my confiruration file correct? How can I be sure that I'm using c3p0 and not the default pool (nothing is notified in JBoss about the used pool).

Code:
<hibernate-configuration>
   <session-factory name="SessionFactory">
      <!-- connection properties -->
      <property name="connection.datasource">java:/DB</property>

      <!-- dialect for Oracle 9 -->
      <property name="dialect">net.sf.hibernate.dialect.Oracle9Dialect</property>
      <property name="hibernate.show_sql">true</property>
      <property name="hibernate.use_outer_join">true</property>
      <property name="jta.UserTransaction">java:comp/UserTransaction</property>
      <property name="cache.use_query_cache">false</property>
      
      <!--### C3P0 Connection Pool ###-->
       <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> <!-- seconds -->


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.