Re: Tapestry-Hibernate using sessions inside of scheduler or threads.

2013-11-01 Thread George Christman
Thanks dmitry, I was a little misguided on SO, resulting in this question, but it looks as if the issue had to do with me not closing my session after the thread completed. I've been spoiled with tapestry-hibernate doing that for me on non threaded transactions :) Anyhow Lance also pointed out I ne

Re: Tapestry-Hibernate using sessions inside of scheduler or threads.

2013-11-01 Thread Dmitry Gusev
Creating new connections per thread/request is the right way. But you should close your sessions when your thread/request completed. Just make sure that you have enough connections in your connection pool (i.e. pool size >= threads/requests count), and things will work fine. On Fri, Nov 1, 2013 a