[jboss-dev-forums] [Design of JBoss Remoting, Unified Invokers] - Re: Remoting unmarshalling vs. class loaders

david.lloyd@jboss.com do-not-reply at jboss.com
Thu Aug 7 10:50:43 EDT 2008


"scott.stark at jboss.org" wrote : No, I mean if the response object container the unmarshalled object that is going to be streamed by the transport layer after the handler has cleared the TCL, possibly in another thread.

Ah, got it.  In R3, the stream is associated with the request (and thereby the service), so on the server side, the proper TCL can easily be selected.  Also, the server side contains a mechanism for dispatching asynchronous tasks (for the purpose of asynchronous cancellation originally) which can easily be leveraged for this purpose as well.  The end result would be that any thread that does anything related to a request can be preconfigured ahead of time however we need.

On the client side it's a little different but I think that we could set it up to select the right classloader for the duration of any unmarshalling or stream handling operation regardless of thread through the way stream handler API is invoked.  I'll double-check that to be sure though.


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

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



More information about the jboss-dev-forums mailing list