[jboss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re:

pavlovrv do-not-reply at jboss.com
Thu Apr 3 10:56:42 EDT 2008


This is not hibernate configuration issue and not data source problem but a concurrency connection usage problem. The problem is definitely in your code.

I've spent 6 days on similar problem. The same  exception was thrown only under load testing with chance of occurrence about 0.08% (8 exceptions on 10000 requests).

I tried all possible settings for jboss data source (local-tx and xa datasource were tried too), all settings of hibernate which were posted in forums as "last two rows helps me". Actually they just decrease the chance of occurrence but it is not a complete solution.

Following links helps me to understand in which direction I  have to look:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=42481
http://forum.java.sun.com/thread.jspa?threadID=782570

In my case it was Seam EntityManager field in component with ScopeType.APPLICATION it was used from several places. Added @Synchronized solves this problem.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141387#4141387

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141387



More information about the jboss-user mailing list