[jboss-dev-forums] [JBoss AS 7 Development] - Re: Calls against multiple servers from a single client

Tarek Hammoud do-not-reply at jboss.com
Thu Sep 13 15:53:48 EDT 2012


Tarek Hammoud [https://community.jboss.org/people/thammoud] created the discussion

"Re: Calls against multiple servers from a single client"

To view the discussion, visit: https://community.jboss.org/message/759493#759493

--------------------------------------------------------------
Hello Wolf,

There is no (nor there should be and) affinity between a thread and an EJB proxy. The user can execute against an EJB proxy from ANY thread and not just the one that created it. It is at invocation time, the proper EJB context (Stored in the proxy code above) needs to be setup so that the EJBInvoker code from JBOSS sees the "right" context for THAT thread. Today, EJBContext has SELECTOR as a static so all threads will trample on each other when the code calls requireCurrent from multiple threads. 


I hope I answered your question. Thank you for all your help in this.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/759493#759493]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120913/a60cefab/attachment.html 


More information about the jboss-dev-forums mailing list