[JBoss AS 7 Development] - Re: Calls against multiple servers from a single client
by Tarek Hammoud
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/759498#759498
--------------------------------------------------------------
If you look at the bolded code in EJBInvocationHandler:
Object doInvoke(final T proxy, final Method method, final Object[] args) throws Throwable {
final MethodHandler handler = clientSideMethods.get(new MethodKey(method));
if (handler != null && handler.canHandleInvocation(this, proxy, method, args)) {
return handler.invoke(this, proxy, method, args);
}
* final EJBClientContext context = EJBClientContext.requireCurrent();*
return doInvoke(this, async, proxy, method, args, context);
}
EJBClientContext is using a non-thread local static. I don't know how to make that thread safe with the above suggestions. Looking forward to hearing from you.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/759498#759498]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 6 months