[jboss-dev-forums] [Design of JBoss Remoting, Unified Invokers] - Re: Remoting and ClassLoader domains don't mix
david.lloyd@jboss.com
do-not-reply at jboss.com
Thu Aug 9 10:56:12 EDT 2007
For Remoting 3, a solution to this problem presents itself in that the handler identifier, in other words the Object key that identifies the operation to be performed, can be used to locate the ClassLoader to use to deserialize the request.
Basically Remoting could look at the class name of the identifier, then look up all the registered keys that share that class name, grouped by the ClassLoader of the key. For each ClassLoader, the key is deserialized and checked against the registry - if it is equal, then use the ClassLoader associated with the deployment that registered the key to deserialize the payload and invoke the operation.
It is a bit clunky if the identifier needs to be deserialized more than once - but it is my belief that this will seldom happen, as people will typically use either a JDK class like String for their key (which is available to all ClassLoaders) or a class or enum that is specific to their deployment.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072556#4072556
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072556
More information about the jboss-dev-forums
mailing list