jbossas/jboss-remote-naming — pull request #10 by doctau (2012-10-10 04:41:16+00:00)
Title: AS7-5718. Use the correct classloader when deserializing remote objects

This patch add a new ClassLoadingNamedIoFuture class which carries the classloader from call to handler for the commands that need it.

The type parameter changes mean that subclasses of ProtocolIoFuture can be passed to the handle methods in a type-safe way.

All handleServerMessage() implementations use jboss-as-naming's classloader to read the request.

handleClientMessage() implementations which may receive deployment objects (lookup, listBindings and lookupLink) use the TCCL from the call to execute() which should be the one making the Context.*() call

handleClientMessage() implemenations that do not receive deployment objects use jboss-as-naming's classloader.