R
Remi Bastide
There is something I cannot figure out quite right :
In general you need an HTTP server in RMI to get some java code moved
around.
If I understand correctly the typical scenario when you need this is :
- A client calls a method on a remote object that is declared to
return an instance of class A
- The server returns an instance of class B which is a subclass of A
- If B.class is not available at the client's site, then the client
needs to find it somewhere, and the codebase property is used there
(usually it points to an HTTP server)
My point is, if the client can call the server, then there is already
a connection between the two, and so while not use this connection to
download the code as well ? The same connection could be used to
transport the RMI calls and returns, and the missing classes if
needed.
Hope I made myself clear, I'm a bit confused...
In general you need an HTTP server in RMI to get some java code moved
around.
If I understand correctly the typical scenario when you need this is :
- A client calls a method on a remote object that is declared to
return an instance of class A
- The server returns an instance of class B which is a subclass of A
- If B.class is not available at the client's site, then the client
needs to find it somewhere, and the codebase property is used there
(usually it points to an HTTP server)
My point is, if the client can call the server, then there is already
a connection between the two, and so while not use this connection to
download the code as well ? The same connection could be used to
transport the RMI calls and returns, and the missing classes if
needed.
Hope I made myself clear, I'm a bit confused...