RE: tapestry, hibernate and timeout

2011-12-01 Thread bdm
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

Re: tapestry, hibernate and timeout

2011-11-29 Thread Lenny Primak
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

RE: tapestry, hibernate and timeout

2011-11-29 Thread bdm
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. --

Re: tapestry, hibernate and timeout

2011-11-29 Thread bdm
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.

RE: tapestry, hibernate and timeout

2011-11-28 Thread Wechsung, Wulf
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

Re: tapestry, hibernate and timeout

2011-11-28 Thread bdm
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 -

Re: tapestry, hibernate and timeout

2011-11-28 Thread nquirynen
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