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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...