Is it possible to use remote classloading for this case? The class provider should be on the client.
As of Remoting 2.x, remote classloading is supported in the server to client direction only. It will be supported in both directions in Remoting 3.
Thanks for the reply!
I tried to use the reverse, and get commands from the server to the client, but without having them initialy on the client.
I've read the "Remote classloading facility" in the JBoss Remoting Guide, but I did not get it :(
The only thing that I could do is to set my own un-marshaller for the client with a custom class loader. What should I in that class loader? Connect to a loaderport on the server? It's done automaticaly?
Could you please give me some directions?
If you set "loaderport" on the server, it will create a special purpose server that can be queried for classes. If you set "loaderport" on the client, the built-in classloader will attempt to contact that special purpose server if it can't find a class locally. If you put "loaderport" in the InvokerLocator, both the client and the server will see it.
You don't need a custom classloader or custom unmarshaller.
Thanks! It worked. I was complicating things too much.
Glad to hear it.