4
418928
Hi everybody,
I've got a few questions on RMI:
-Why is it a problem not having the stub on the client side? The client
needs the interface anyway to
compilae, so I don't see a situation where downloading the stub
dynamically would be benefitial? (as you must copy the interface in
advance, you can also copy the stub).
-When I launch a server that registers some object on the RMI
subsystem, it remains executing (because it has objects referenced by
the name server). I I kill the server (with CTRL-C), the objects will
die but they will still be registered on the rmiregistry (as far as I
understand...). Is there any way of performing an automatic unbind when
killing the server?
-Performing a test where I download dynamically a stub, it fails (due
to security restrictions) when I use a codebase starting with "file:\\"
but it works if it starts just with "file:". I don't understand what's
the difference...
-I'm not sure if the exception propagation is automatic with RMI in the
current version of Java, is it? For example, if executing the remote
method a NullPointerException is launched, it will be automatically
wrapped in a RemoteException? In Java 1.3, it wasn't.
-Is the rmiregistry implemented using JNDI? If so, I think one of the
main inconveniences of the RMI name service (that it is a flat,
non-hierarchical namespace) could be avoided by using JNDI with LDAP.
Am I right?
Thanks in advance,
S.
I've got a few questions on RMI:
-Why is it a problem not having the stub on the client side? The client
needs the interface anyway to
compilae, so I don't see a situation where downloading the stub
dynamically would be benefitial? (as you must copy the interface in
advance, you can also copy the stub).
-When I launch a server that registers some object on the RMI
subsystem, it remains executing (because it has objects referenced by
the name server). I I kill the server (with CTRL-C), the objects will
die but they will still be registered on the rmiregistry (as far as I
understand...). Is there any way of performing an automatic unbind when
killing the server?
-Performing a test where I download dynamically a stub, it fails (due
to security restrictions) when I use a codebase starting with "file:\\"
but it works if it starts just with "file:". I don't understand what's
the difference...
-I'm not sure if the exception propagation is automatic with RMI in the
current version of Java, is it? For example, if executing the remote
method a NullPointerException is launched, it will be automatically
wrapped in a RemoteException? In Java 1.3, it wasn't.
-Is the rmiregistry implemented using JNDI? If so, I think one of the
main inconveniences of the RMI name service (that it is a flat,
non-hierarchical namespace) could be avoided by using JNDI with LDAP.
Am I right?
Thanks in advance,
S.