[jboss-user] [EJB 3.0] - Re: EJB with synchronized

ALRubinger do-not-reply at jboss.com
Fri Jul 20 15:51:11 EDT 2007


According to the EJB3 Spec, 4.7.11, the container is responsible to ensure that only one thread is passed through any session bean instance at any one time.  Therefore, using the synchronized on a method would be moot.

However, it's entirely possible to have many instances accessing the same field (static?) and that leading to your problems...

Mind posting the session bean code (or relevant portions)?

S,
ALR

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

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



More information about the jboss-user mailing list