thread « Tomcat « JPA Q&A





1. Having a thread using Hibernate and C3p0 with database on Tomcat    stackoverflow.com

I am using Hibernate and C3P0 to manage my connections. I also have a thread to do database operations. The problem is when I undeploy my webapp from tomcat, my thread ...

2. How to force Apache Tomcat not to reuse a thread from the thread pool?    stackoverflow.com

We've got a normal-ish server stack including BlazeDS, Tomcat and Hibernate. We'd like to arrange things such that if certain errors (especially AssertionError) are thrown, the current thread is considered to be ...

3. Problems with numbers of threads in tomcat server    forum.hibernate.org

I have problems with the number of threads in my tomcat Server. Everytime I open a database connection through the HibernateUtil Class a new thread is started and this thread is never closed anymore. So on every click a new Thread is started and this causes Tomcat to crash after same 1000 requests and I get a outofMemoryError... I'm opening the ...

4. Struts/Hibernate/Runnable/Tomcat multithreading issue    forum.hibernate.org

Regular Joined: Tue Nov 23, 2004 7:42 am Posts: 82 Location: London, England Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 2.1.6 Full stack trace of any exception that occurs: None I integrated the HibernateFilter from the Hibernate 2 version of Caveat Emptor into our application and came across a strange issue with multithreading (I have searched ...

5. Tomcat thread pooling    forum.hibernate.org

I've read the article here: http://www.theserverside.com/tt/articles/article.tss?l=HibernateTomcat. And it is said there: Quote: The difference between openSession() and getCurrentSession() is that the former, each time it is used, provides a brand new Hibernate Session. That is exactly what we want in our servlet. In contrast, getCurrentSession attempts to associate a Hibernate Session with a specific thread (the Singleton-per-Thread pattern), which Hibernate achieves ...