users@glassfish.java.net

Re: Thread-safety of EJB references in GlassFish.

From: <glassfish_at_javadesktop.org>
Date: Wed, 07 May 2008 23:20:21 PDT

Hello,

I'm sorry that it was not clear what I wanted to mean in :
> Or, we have to "synchronize(myEJB)"

I meant by it that we have to write something like the followings to make it sure that only one method call is made for one EJB reference.

final MyEJB ejb = getMyEJB();
synchronize (ejb) {
   ejb.someMethod();
}

Best regards,
- Ryosuke
[Message sent by forum member 'isana' (isana)]

http://forums.java.net/jive/thread.jspa?messageID=273262