[jboss-dev-forums] [JBoss AS 7 Development] - Re: Calls against multiple servers from a single client
Tarek Hammoud
do-not-reply at jboss.com
Fri Sep 14 08:26:20 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/759595#759595
--------------------------------------------------------------
Hi Wolf,
>
> Deploy the same applcation at different servers with different credentials and need to decide which one is called?
That is one of the use cases.
> That will not be true, it is possible to have multithread clients with AS7, but as I mentionend it is completly different in implmentation and use.
This why I opened this ticket. While the framework clearly allows for multiple targets and there is nothing to inhibit a multithreaded client, I am pointing out a race condition in the implementation with respect to static in EJBContext. Again, looking at the EJBInvocationHandler, you can clearly see that it is indirectly manipulating a static member by calling the requireCurrent(). Two threads in the EJBInvocationHandler doInvoke code can end up pointing to the wrong SELECTOR.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/759595#759595]
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/20120914/3c0d2764/attachment.html
More information about the jboss-dev-forums
mailing list