-->
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: Setting properties in Hibernate.cfg.xml for C3p0.properties
PostPosted: Mon Mar 11, 2013 3:19 am 
Newbie

Joined: Mon Mar 11, 2013 3:07 am
Posts: 1
Hi

I am using hibernate 3.0 and c3p0 v09.2. While I am able to set specific properties in Hibernate config xml for C3p0 properties, I am not able to set all properties. I found that they have to be set through c3p0.properties file only. However I find that c3p0.properties is not getting loaded at all wherever I keep it. Can someone help me on how to get the c3p0 properties set correctly?


Top
 Profile  
 
 Post subject: Re: Setting properties in Hibernate.cfg.xml for C3p0.properties
PostPosted: Mon Mar 11, 2013 10:39 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Quote:
I find that c3p0.properties is not getting loaded at all wherever I keep it.

Configuration files are normally looked up under standard names (c3p0.properties or c3p0-config.xml) at the top level of an application's classpath.
This means that, if you have c3p0.properties for example put into directory C:\mydir\c3p0\
then your java-class-path must include that directory C:\mydir\c3p0


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.