Hello

2) Is it safe to make multiple calls through the same proxy on multiple 
threads? Do I have to think about managing pools of them to save on create() 
calls, or can I just get one and use it freely? 


This is from the ejb specification and should answer this question:

"The container must ensure that only one thread can be executing an instance at 
any time. If a client
request arrives for an instance while the instance is executing another 
request, the container may throw
the java.rmi.RemoteException to the second request if the client is a remote 
client, or the
javax.ejb.EJBException if the client is a local client.[6]
Note that a session object is intended to support only a single client. 
Therefore, it would be an
application error if two clients attempted to invoke the same session object.
One implication of this rule is that an application cannot make loopback calls 
to a session bean instance."

If you have multiple threads for one proxy, than you would try to use the same 
bean instance. That's how I would understand this!

Thomas

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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to