-->
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: Can't get hibernate to use c3p0
PostPosted: Wed Mar 04, 2009 7:08 am 
Newbie

Joined: Thu Dec 11, 2008 5:13 am
Posts: 4
Hibernate version: 3

Hello,

I'm trying to get hibernate to use c3p0, but I can't get this to work. I keep getting this message on startup: "Using Hibernate built-in connection pool (not for production use!)"

Here is my hibernate.properties:

hibernate.connection.driver_class = com.ibm.db2.jcc.DB2Driver
hibernate.connection.url = jdbc:db2://localhost:50000/MYDB
hibernate.connection.username = user
hibernate.connection.password = secret
hibernate.c3p0.min_size=5
hibernate.c3p0.max_size=20
hibernate.c3p0.timeout=1800
hibernate.c3p0.max_statements=50
hibernate.default_schema = myschema
hibernate.dialect = org.hibernate.dialect.DB2Dialect

It's inspired from what is described here: http://www.hibernate.org/hib_docs/refer ... ejdbc.html

Any idea? Thanks


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.