RMI and class loading

B

Bruno Ritz

Hi,

I have the follwing problem with RMI:
My application uses a URLClassLoader to load its modules from an HTTP
server. This all works fine. But when a client communicates with my app
thru RMI, I always get a RemoteException because some classes needed for
communication with the modules are not in the java.rmi.server.codebase
system property (the module codebase directories are determined at runtime).

Now my question: Can I somehow tell the RMI class loader at runtime
where to look for classes?


Thanks for your help
Bruno
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top