JBoss Community

Re: Calls against multiple servers from a single client

created by Tarek Hammoud in JBoss AS 7 Development - View the full discussion

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

Start a new discussion in JBoss AS 7 Development at Community