[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: How to configure hibernate to be able to work concurrent
kadlecp
do-not-reply at jboss.com
Wed Mar 5 13:19:06 EST 2008
My fault, my terrible fault.
The exception is thrown by stateless session bean, not mdb. I reused same reference to that stateless session bean by multiple threads (I once did look up in initial context and then reused the reference). The threads then access same instance of entity manager which is wrong (entity manager is not thread safa object).
Pavel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134369#4134369
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134369
More information about the jboss-user
mailing list