Hello,
I have figured out the good mysql/hibernate configuration !
With this hibernate.hbm.xml:
with this mysql timeout configuration:
and pom.xml dependencies (hibernate-version: 3.5.6-Final, tapestry: 5.3.0):
Bye !
--
View this message in context:
http://tapestry.1045711.n5.nabble.com
Are you using glassfish? Glassfish has connection pools built in. You can use
those. I use them with success with JPA but I am pretty sure hibernate is very
similar in this manner.
On Nov 29, 2011, at 4:31 AM, bdm wrote:
> Thanks ! I keep your solution if I can not configure properly C3P0
Thanks ! I keep your solution if I can not configure properly C3P0 ...
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/tapestry-hibernate-and-timeout-tp5028844p5031723.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
--
Thanks, but I already use the C3P0 connection pool without success ... maybe
it's a configuration problem but I can not figured out what is it !
I have move the post to the "Tapestry - User" forum as suggested !
I'll still digging ...
--
View this message in context:
http://tapestry.1045711.n5.
Hi Bdm,
I guess you should use connection pooling but if you want to manage your own
connection I would do it like this:
Manage the JDBC connection as thread with per-request scope. I think the
Connection is already an interface so you can do the following in APP Module:
@Scope(ScopeConsta
Thanks for your reply !
I already set a c3p0 connection pool but I missed the idleTestPeriod param !
I try that and get back tomorrow !
See you!
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/tapestry-hibernate-and-timeout-tp5028844p5029204.html
Sent from the Tapestry -
I think this is a MySQL / Hibernate issue, not Tapestry.
I think you need to configure your connection pooling. Example:
http://community.jboss.org/wiki/HowToConfigureTheC3P0ConnectionPool
http://community.jboss.org/wiki/HowToConfigureTheC3P0ConnectionPool
--
View this message in context:
http