posted 21 years ago
Hello Chris,
I was trying to make the machine as the server and the other remote machines connected to it through rmi.
In the begining i did'nt provide any sort of codebase and class server concept. It was then that the strange problem i mentioned above arised. However after i provided the codebase and the class server concept the problem got solved. So, not providing the codebase might have been the problem. But what is not clear to me as why the code behaved in such a way as it did in absense of the codebase and class server.
By the way, I am starting the class server from within my code, through the following code:
ClassFileServer cfServer = new ClassFileServer(port, classpath);
So at present the rmiregistry, class server and the remote object hosting everything is being taken care of by my code and all this happens in a single instance of JVM.
As far as the need of a class server is concerned i have observed the following behavior:
I modified the class server to show a message whenever a class file was requested from it. Now when i start rmi registry internally through locateRegistry.createregistry..... code then the rmi mechanism doesn't uses my class server at all. It seems that a class file is requested from the class server by the rmi mehansism only when i start the rmiregistry manually as a separate instance from the terminal.
Please explain this behavior.
Thanks in advance.
[ January 22, 2004: Message edited by: Vishal Sinha ]