"[EMAIL PROTECTED]" wrote : 
  | I don't like the idea of cloning the dispatcher on every request.
  | 

Right, but you have to either copy or synchronize anything that might be mutated by 
the thread that's on the context. If there's any state in the dispatcher or you want 
to keep the dispatcher abstraction then either one needs to be implemented. 

Same applies to any other mutable fields that is associated with the call - the 
metadata descriptors or the interceptors.

Share in the context and sync the threads or make a copy. Synchronizing probably gives 
better single thread performance but eventually cause thread contention and might not 
scale up as well.

Whether the args are in the invocation or in the dispatcher makes no difference, 
they're already per call context anyway, created by the caller. The problem was that 
the same dispatcher reference was shared with all incoming calls.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831991#3831991

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831991


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to