-->
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.  [ 2 posts ] 
Author Message
 Post subject: c3p0 and hibernate.properties
PostPosted: Tue Aug 16, 2005 8:13 am 
Regular
Regular

Joined: Fri Feb 25, 2005 3:02 am
Posts: 71
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

[b]Hibernate version:3.0[/b]

[b]Mapping documents:[/b]

[b]Code between sessionFactory.openSession() and session.close():[/b]

[b]Full stack trace of any exception that occurs:[/b]

[b]Name and version of the database you are using:[/b]

[b]The generated SQL (show_sql=true):[/b]

[b]Debug level Hibernate log excerpt:[/b]

Hi everyone,

I am using hibernate.cfg.xml for all my db connection configurations. Up to now everything works fine. Then I've added hibernate.c3p0.* properties in the hibernnatecfg sub-task so that I can use connection pooling in my application. But when I load my application (in Jonas) I found that hibernate tries to look for db-url property in hibernate.properties file instead of data source property from my_app.cfg.xml as before. As if when using c3p0, the latter forces hibernate to read properties in hibernate.properties file instead of reading properties in my_app.cfg.xml.
When I remove the hibernate.properties file from the conf directory, jonas could not start properly. I found errors in the log.
Can anyone please help me solve my problem.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 16, 2005 8:18 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
If you are working with app server, use its connection pool.


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