File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes Codebase and rmiregistry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Codebase and rmiregistry" Watch "Codebase and rmiregistry" New topic

Codebase and rmiregistry

Mr. C Lamont Gilbert
Ranch Hand

Joined: Oct 05, 2001
Posts: 1170

It seems from reading and experience, that when the classes are located in the rmiregistry's classpath, they can not be downloaded from the codebase by the client. I was before starting my registry from within my server program using 'createRegistry()'. However, when I do that, the registry ends up having the classes in its classpath, and thus the downloading does not work.

To fix this I start the rmiregistry externally, and make sure its classpath is blank. Now, things work. This does however mean I must have classes duplicated. Once in the server classpath, and once in a location to be used by the rmiregistry. (I guess I could map both to the same place)

Anyway, I just want to confirm that this is the case. And that there is no way around this issue. Its not that big of a deal, but I did like the idea of the registry living and dying with my program.
I agree. Here's the link:
subject: Codebase and rmiregistry
It's not a secret anymore!