I am new to hibernate and I try to build a prototype using Jetty, Cocoon and Hibernate. I am calling hibernate by using Java Classes, which are called from Extended Server Pages (XSP). I have also created a help class HibernateUtil.java which manages the Hibernate Sessions and Transactions. The latest version, which I tried is the following:
My problem is that, whe I test my application with JMeter using only one thread everything functions perfectly. However, when I run JMeter-Test with more than one thread the requests begin to hang. The problem seems to be some kind of timing problem, because the position where the application hangs up varies.
It seems to me, that Hibernate waits for a resource, which is not delivered. The original application using Stored Procedures has no problems with JMeter using several threads.