• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate hangs with Jetty,Cocoon!?

Marko Jyrkinen
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

What am I doing wrong ? Any ideas ?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!