-->
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.  [ 7 posts ] 
Author Message
 Post subject: Proxool Hibernate/Tomcat example
PostPosted: Thu Jul 15, 2004 11:23 pm 
Newbie

Joined: Wed Jan 14, 2004 4:44 pm
Posts: 13
Location: Wellington, New Zealand
Hi

Is there an example somewhere of how to configure Proxool for use in Hibernate on Tomcat? I've checked the docs.

I am experiencing the same problem that a lot of others have using DBCP - I can't get a connection after 12 hours.

Thanks

Russell


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 16, 2004 2:27 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
hi,
are you sure the problem comes from DBCP or from your db?

no problem,
if you want to use proxool; search proxool on google, you'll find all about configuring it, then you only have to declare filepath on the hibernate.cgf.xml --> proxool.properties

but the problem is that it is using filesystem and not classpath.

The best choice and easier to configure is C3P0
http://www.hibernate.org/214.html

bye,

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 16, 2004 4:41 pm 
Proxool Developer
Proxool Developer

Joined: Tue Aug 26, 2003 10:42 am
Posts: 373
Location: Belgium
[quote="anthony"]
if you want to use proxool; search proxool on google, you'll find all about configuring it, then you only have to declare filepath on the hibernate.cgf.xml --> proxool.properties

but the problem is that it is using filesystem and not classpath.
quote]

Not true - you can configure proxool's behavior directly from within the hibernate.properties configuration file. As far as I remember, the default hibernate.properties that comes with the Hibernate distribution already contains all configuration directives understood by Proxool.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 16, 2004 5:39 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
hi brenuart,
i may be wrong but i think gavin said on a recent post that the support of proxool via hibernate configuration file wasn't good (don't know if "good" is really the word).

It would be great to have a light piece of doc about dbcp,proxool and c3p0, users are confused.

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 16, 2004 5:43 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
i've got it

gavin said:
Quote:
Configuration of proxool from hibernate.properties is no longer supported and never really worked properly anyway. Specify the dirver in proxool.xml, as per the proxool docs.
http://proxool.sourceforge.net/configure.html


http://forum.hibernate.org/viewtopic.ph ... highlight=

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 1:01 pm 
Proxool Developer
Proxool Developer

Joined: Tue Aug 26, 2003 10:42 am
Posts: 373
Location: Belgium
anthony wrote:
hi brenuart,
i may be wrong but i think gavin said on a recent post that the support of proxool via hibernate configuration file wasn't good (don't know if "good" is really the word).

It would be great to have a light piece of doc about dbcp,proxool and c3p0, users are confused.


I'll have a look a post something about it on the wiki - stay tuned ;)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 1:28 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
emmanuel and me have written a wiki on c3p0, the best would be to add dbcp & proxool there

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


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