[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 16:17:05 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/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&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120913/c9438f69/attachment.html
More information about the jboss-dev-forums
mailing list